module PORTL

Constants

VERSION

Public Class Methods

compile(data, scope=nil, options={}) click to toggle source

Compiles a PORTL template.

@param [String] data The Ruby code of the template being compiled. @param [Object] scope An object the engine uses for its context. @param [Hash] options Options to pass to the engine. @return [String] The compiled code.

# File lib/portl.rb, line 16
def self.compile(data, scope=nil, options={})
  PORTL::Engine.new(data, scope, options).result
end