Sha256: 9d1b48091d29fb2c89334a0b0a13070569c704d1214136fec82ac0b15f412526
Contents?: true
Size: 850 Bytes
Versions: 1
Compression:
Stored size: 850 Bytes
Contents
require 'cutaneous/engine' require 'cutaneous/template' require 'cutaneous/loader' require 'cutaneous/context' require 'cutaneous/syntax' require 'cutaneous/lexer' require 'cutaneous/compiler' module Cutaneous VERSION = "0.1.2" class CompilationError < Exception; end class UnknownTemplateError < Exception def initialize(template_roots, relative_path) super("Template '#{relative_path}' not found under #{template_roots.inspect}") end end def self.extension "cut" end FirstPassSyntax = Cutaneous::Syntax.new({ :comment => %w(!{ }), :expression => %w(${ }), :escaped_expression => %w($${ }), :statement => %w(%{ }) }) SecondPassSyntax = Cutaneous::Syntax.new({ :comment => %w(!{ }), :expression => %w({{ }}), :escaped_expression => %w({$ $}), :statement => %w({% %}) }) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cutaneous-0.1.2 | lib/cutaneous.rb |