CPAN has the Template::Declare package. A declarative way to create html templates in perl code without any html directly written.
I would love to use similar packages in python and ruby. Are there equivalent packages for those languages?
CPAN has the Template::Declare package. A declarative way to create html templates in perl code without any html directly written.
I would love to use similar packages in python and ruby. Are there equivalent packages for those languages?
Are you looking for something like Haml in Ruby ?
Example for Ruby :
$ sudo gem install haml
$ irb
> require 'haml'
> Haml::Engine.new('%p Hello, World').render
=> "<p>Hello, World</p>\n"
In Ruby there is Markaby
. The closest I know if in Python is Brevé
.
Also there are a few more in Perl
and other languages as well.
/I3az/