Here is a simple html template system, as the name "template" already used in Arc, I call it "layout". It is extremely simple, as only need dozen lines. See: https://github.com/dram/acorn/commit/8d9db8cc778e05d4cf6c2a935dd7d04a644e166e And here is an example: https://github.com/dram/acorn/blob/master/news.arc#L400 And template file: https://github.com/dram/acorn/blob/master/layouts/npage.html The template syntax is same as atstring, actually I just reuse atstring's code. It may has problems here or there, please correct me. :) |