Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A port of Ruby to HTML::Template::Pro.

branch: master

version++

latest commit 29f4834168
Tom Tsuruhara authored October 03, 2009
Octocat-spinner-32 config newgem - ize September 30, 2009
Octocat-spinner-32 ext version++ October 03, 2009
Octocat-spinner-32 lib version++ October 03, 2009
Octocat-spinner-32 script newgem - ize September 30, 2009
Octocat-spinner-32 tasks setup include path for test October 01, 2009
Octocat-spinner-32 templates-Pro added loop benchmark September 29, 2009
Octocat-spinner-32 templates initial commit (it's just a copy of perl version) September 08, 2009
Octocat-spinner-32 test setup include path for test October 01, 2009
Octocat-spinner-32 website modify documents October 02, 2009
Octocat-spinner-32 .autotest mmm... September 30, 2009
Octocat-spinner-32 .gitignore added extra_rdoc_files October 01, 2009
Octocat-spinner-32 ARTISTIC initial commit (it's just a copy of perl version) September 08, 2009
Octocat-spinner-32 History.txt version++ October 03, 2009
Octocat-spinner-32 LGPL initial commit (it's just a copy of perl version) September 08, 2009
Octocat-spinner-32 Manifest.txt fixed Manifest October 02, 2009
Octocat-spinner-32 README.rdoc fix redundant documentation October 03, 2009
Octocat-spinner-32 Rakefile version++ October 03, 2009
Octocat-spinner-32 benchmark.rb added loop benchmark September 29, 2009
README.rdoc

html-template-pro

DESCRIPTION:

A Ruby port of `HTML::Template::Pro'. `HTML::Template::Pro' is template engine originally written in Perl and XS. It's so fast because of its C based implementation. Its syntax is very simple. This results clearly separation of application logic and its view.

Template syntax complies with original perl module's syntax. Please see, HTML::Template::SYNTAX.

SYNOPSIS:

# foo.rb
require 'html/template/pro'

template = HTML::Template::Pro.new(:filename => 'foo.tmpl')
template.param(:param1 => 100)
puts template.output

# foo.tmpl
<html>
  <head></head>
  <body>
    <h1><TMPL_VAR NAME="param1"></h1>
  </body>
</html>

# results
$ ruby foo.rb
<html>
  <head></head>
  <body>
    <h1>100</h1>
  </body>
</html>

REQUIREMENTS:

  • C99 compiler.

  • ruby > 1.9.

INSTALL:

  • sudo gem install html-template-pro

SEE ALSO:

WEBSITE:

AUTHOR:

Tom Tsuruhara <tom.lpsd@gmail.com>

Original perl module HTML::Template::Pro (and most of this package's C code) is written by I. Vlasenko <viy@altlinux.org>. Thanks to him for his great work.

COPYRIGHT AND LICENSE:

Copyright (C) 2009 by Tom Tsuruhara. Most of C codes (except internal.c) are Copyright (C) 2005-2009 by I. Yu. Vlasenko.

This library is free software; you can redistribute it and/or modify it under the same terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Something went wrong with that request. Please try again.