lib/cutaneous.rb in cutaneous-0.1.1 vs lib/cutaneous.rb in cutaneous-0.1.2
- old
+ new
@@ -5,11 +5,11 @@
require 'cutaneous/syntax'
require 'cutaneous/lexer'
require 'cutaneous/compiler'
module Cutaneous
- VERSION = "0.1.1"
+ VERSION = "0.1.2"
class CompilationError < Exception; end
class UnknownTemplateError < Exception
def initialize(template_roots, relative_path)
@@ -18,6 +18,20 @@
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