Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wonder why there is no general "template" language that you can use on any text/source file

Template Toolkit is such a beast: http://template-toolkit.org/

Beyond its normal Perl (and Python) web templating usage I've also used (and abused) TT for:

* All my static websites

* CSS (dynamic and static)

* Pre-process scripts (including Javascript)

* Multi-lingual email

* Creating (end user) configurable data exports (eg. CSV).

* Websurvey language!

* And probably other things I've (hopefully!) forgotten :)

NB. See "ttree" & "tpage" in docs for standalone usage.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: