The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Liquid Template Engine Example In Rust

TODO: Pull subtitle into page object
Code
//! ```cargo
//! [dependencies]
//! liquid = "0.26.4"
//! ```

fn main() {

  let skeleton = "Hello, {{ name }}";

  let template = liquid::ParserBuilder::with_stdlib()
      .build().unwrap()
      .parse(skeleton).unwrap();

  let globals = liquid::object!({
      "name": "World"
  });

  let output = template.render(&globals).unwrap();
  println!("{}", output);

}
Results
Hello, World

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Liquid Template Engine Example In Rust

-- code
-- rust

//! ```cargo
//! [dependencies]
//! liquid = "0.26.4"
//! ```

fn main() {

  let skeleton = "Hello, {{ name }}";

  let template = liquid::ParserBuilder::with_stdlib()
      .build().unwrap()
      .parse(skeleton).unwrap();

  let globals = liquid::object!({
      "name": "World"
  });

  let output = template.render(&globals).unwrap();
  println!("{}", output);

}

-- results/

Hello, World

-- /results


-- categories
-- Rust 

-- groups

-- metadata
-- date: 2024-01-10 12:33:10
-- id: 2alzxb9g
-- site: aws
-- type: post
-- status: draft