Rustacean Station  cover image

Creating Static Sites in Rust with Vincent Prouillet

Rustacean Station

CHAPTER

How to Use a Template Engine to Generate Text Outputs

A template engine is where somebody would write out say their HTML, but then be able to introduce additional behavior or rust code that would be compiled down to the end result. You can define your own solar and Terra comes with some built-in tools so you can customize your own template engine. There's another third type of things you can customize into Terra, which are functions. In ginger to it's super easy because you can just set whatever function you want in a dict and that works. It's a bit more complex in Terra because it's compiled,. If you want to get a page from another page, for example, if you want to getting the last three posts on a section or something

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner