Hi! I'm just looking for an HTML-like template engine to compile many different html pieces into many other pages. EJS looks great and your grunt-ejs-static task too!
Include feature makes possible to include some partials into a single file, which is great, but extending is more likely to be correct for layouting. Imagine that I want to build 3 pages with different content but within one layout: main, blog and post.
Now I'm set to make 3 different so-called layouts
looking pretty the same. The first one will include head.ejs, main.ejs and foot.ejs, the second one will have head.ejs, blog.ejs and foot.ejs included and the last one will have head.ejs, post.ejs and foot.ejs.
Instead of this duplication I'll be happy to make one layout with head and foot includes, then create there a block
named content
for example and then create pages. Each page may redefine this block
using keyword extend
with block name or something similar.
I realize EJS itself didn't have importing features before you made it.
Is it possible to make extending? May I help you with this job?
Thanks!