- Take string document object model as input
- Parse DOM string and return a traversable DOM tree
- Traverse DOM tree using (post order traversal)[]
- Check if innerHtml of each node has handle bars
- Evaluate handlebars using a emendable Javascript engine
- Replace handlebars content with static string
- Stringify DOM tree
- Return HTML string/file
mhdi-kr / cpp-template-engine Goto Github PK
View Code? Open in Web Editor NEWHTML templating engine POC written in C++
License: MIT License