Module: Sablon

Defined in:
lib/sablon.rb,
lib/sablon/content.rb,
lib/sablon/context.rb,
lib/sablon/version.rb,
lib/sablon/html/ast.rb,
lib/sablon/template.rb,
lib/sablon/operations.rb,
lib/sablon/environment.rb,
lib/sablon/html/visitor.rb,
lib/sablon/html/converter.rb,
lib/sablon/html/ast_builder.rb,
lib/sablon/parser/mail_merge.rb,
lib/sablon/processor/document.rb,
lib/sablon/html/node_properties.rb,
lib/sablon/configuration/html_tag.rb,
lib/sablon/processor/document/blocks.rb,
lib/sablon/configuration/configuration.rb,
lib/sablon/document_object_model/model.rb,
lib/sablon/processor/section_properties.rb,
lib/sablon/document_object_model/numbering.rb,
lib/sablon/processor/document/field_handlers.rb,
lib/sablon/document_object_model/file_handler.rb,
lib/sablon/document_object_model/content_types.rb,
lib/sablon/document_object_model/relationships.rb,
lib/sablon/processor/document/operation_construction.rb

Defined Under Namespace

Modules: Content, Context, DOM, Expression, Parser, Processor, Statement Classes: Configuration, ContextError, Environment, HTMLConverter, Template, TemplateError

Constant Summary collapse

VERSION =
"0.3.2"

Class Method Summary collapse

Class Method Details

.configure {|Configuration.instance| ... } ⇒ Object

Yields:



21
22
23
# File 'lib/sablon.rb', line 21

def self.configure
  yield(Configuration.instance) if block_given?
end

.content(type, *args) ⇒ Object



29
30
31
# File 'lib/sablon.rb', line 29

def self.content(type, *args)
  Content.make(type, *args)
end

.template(path) ⇒ Object



25
26
27
# File 'lib/sablon.rb', line 25

def self.template(path)
  Template.new(path)
end