peter.hilton (233) [Avatar] Offline
#1
In 1.9.2 Template engine (v11 MEAP):

As you may recall, template engines evolved from an earlier technology, SSI.


I’m not entirely sure, but I don’t think that’s right. I suspect that Perl heredocs were used as a templating engine in CGI scripts before SSI. This probably comes down to which feature NCSA HTTPd added first: CGI or SSI. Besides, I only remember SSI being used for adding headers and footers, and not as a template engine with placeholders for variables whose values were set outside the templates.

Perl heredocs apparently come from Bash scripting, which is even older, but I don’t know whether that already allowed placeholders, and hence templating.