Template system is beginning to work!

Written by SysOp on 2019-06-06 11:05:37 updated 2019-07-19 15:37:09; 0 comments

I can't believe I can't find a decent template system. Most of the ones for my language tools were simple merge style systems, doing basic string to string replacements. So I rolled up my sleeves and set to work. The "Django" template system is so well thought out and having worked with it a bunch I think I'll mimic it. I'm not the only one to go down this road many others have also done so: Volt, Handlebars, ...

Today this has become functional enough I can start using it. The variable system is weak and not much better than the other systems I found. But the foundations have been laid for more sophisticated data types beyond basic string variables. I'll have to develop my own variant system for this to really work.

Layering of templates to allow inheriting content from ancestor templates is operational. I've converted my basic one page site to use a two layer template. Render speeds are so freekin' fast that the time command has a hard time timing it. We're talking milliseconds not seconds! I'm not pulling anything from a DB yet so rendering will slow some when I do.