-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =pod Sometimes you want to be able to view rendered HTML templates without having a big Apache or Catalyst application do it. You might want to play with a fun new engine you heard about, or perhaps you want to give your web designer the templates and a renderer to work on while on a plane. Well, now you can install L from the CPAN and do just this. Let's say you have a TT template like this in C: [%# foo.tt -%] Hello, [% there %]! To see this rendered with C, just create a YAML file containing your variables: --- there: world Then start up a server: template-server --docroot /myapp/templates --data vars.yml Then browse to L. There you'll see a listing of the available templates. Click through to L, and you'll see: Hello, world! You can obviously use more complex templates than this. The data file parser uses C to create packages with mocked methods and class data for you, so you can easily emulate Catalyst or Jifty environments and give the templates some good test data to work with. Right now there are TT, Mason, HTML::Template, and TD backends on the CPAN. Why not write one for your favorite templating system? It's only a few lines of code: lang:Perl package MyProvider; use Moose; with 'App::TemplateServer::Provider::Filesystem'; sub render_template { My::Engine->new->render($_[0], data => $_[1]->data) } 1; Enjoy. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHkCzX2rw+dVvzZm0RAm2cAJ4uvd6shYv15zcQECxj9kIle+r6lQCfetBt 0HlBfhc30PU+kALtnpROHcA= =yBuW -----END PGP SIGNATURE-----