---
title: "Discussion on \"Build a simple template engine in <100 lines of Rust code\" | Hashnode"
description: "Discussion on \"Build a simple template engine in <100 lines of Rust code\". Use Regex and a little bit of Rustafarian magic to create your own toy HTML templating engine using Jinja-like syntax"
url: "https://hashnode.com/posts/build-a-template-engine/62acca801a89c91850b1e4de"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a simple template engine in <100 lines of Rust code](https://blog.spike.codes/build-a-template-engine?utm_source=hashnode&utm_medium=feed)

Use Regex and a little bit of Rustafarian magic to create your own toy HTML templating engine using Jinja-like syntax

Jun 17, 2022 · 11 min read · blog.spike.codes  
Updated Jun 21, 2022  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#html5](https://hashnode.com/tag/html5)
-   [#template](https://hashnode.com/tag/template)
-   [#regex](https://hashnode.com/tag/regex)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Spike](https://hashnode.com/@spikecodes)

@spikecodes · California, US

  
[View profile](https://hashnode.com/@spikecodes)

I’m a web developer, software engineer and enthusiastic open-sourcer

My passion is building ethical software that makes the world a better place. I support open source and believe privacy is important in the digital age.

## Responses 2

Markdown supported · ⌘↵ to post

[Ibrahim Nergiz](https://hashnode.com/@nergiz)

[Jun 25, 2022](https://hashnode.com/posts/build-a-template-engine/62acca801a89c91850b1e4de/comment/62b77b74b86f939ac81b656e)

Great article [Spike](https://hashnode.com/@spikecodes)👏

[Spike](https://hashnode.com/@spikecodes)

[Jun 26, 2022](https://hashnode.com/posts/build-a-template-engine/62acca801a89c91850b1e4de/comment/62b77b74b86f939ac81b656e#reply-62b8003c92447c9aed5b926d)

Thanks Ibrahim!

[dribble-prognosis-koala](https://hashnode.com/@twistyoverstuffnum)

[Jun 18, 2022](https://hashnode.com/posts/build-a-template-engine/62acca801a89c91850b1e4de/comment/62ad6f6ecc6d8844e0df3b48)

Thanks.
