5min chapter

 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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode