Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A port of Ruby to HTML::Template::Pro.
C Ruby JavaScript
tag: REL-0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
ext/html/template/internal
lib
script
tasks
templates-Pro
templates
test
website
.autotest
.gitignore
ARTISTIC
History.txt
LGPL
Manifest.txt
README.rdoc
Rakefile
benchmark.rb

README.rdoc

tmplpro

DESCRIPTION:

A Ruby port of HTML::Template::Pro (template engine originally written in Perl and XS).

FEATURES/PROBLEMS:

  • Fast. (Main part is written in C.)

  • Simple. (It avoids mixing up complex logic in View.)

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 C compiler.

INSTALL:

  • sudo gem install html-template-pro

LICENSE:

LGPL

Something went wrong with that request. Please try again.