Module: H2o
- Defined in:
- lib/h2o.rb,
lib/h2o/tags.rb,
lib/h2o/error.rb,
lib/h2o/nodes.rb,
lib/h2o/parser.rb,
lib/h2o/context.rb,
lib/h2o/filters.rb,
lib/h2o/tags/if.rb,
lib/h2o/datatype.rb,
lib/h2o/tags/for.rb,
lib/h2o/tags/raw.rb,
lib/h2o/template.rb,
lib/h2o/constants.rb,
lib/h2o/tags/with.rb,
lib/h2o/tags/block.rb,
lib/h2o/file_loader.rb,
lib/h2o/tags/extends.rb
Defined Under Namespace
Modules: Filters, Tags Classes: ArgumentLexer, BlockContext, CommentNode, Context, DataObject, Error, FileLoader, FilterError, Node, Nodelist, Parser, ParserError, RuntimeError, Stream, SyntaxError, Template, TemplateNotFound, TextNode, VariableNode
Constant Summary collapse
- BLOCK_START =
'{%'
- BLOCK_END =
'%}'
- VAR_START =
'{{'
- VAR_END =
'}}'
- COMMENT_START =
'{#'
- COMMENT_END =
'#}'
- PIPE_RE =
/\|/
- SEPERATOR_RE =
/,/
- FILTER_END_RE =
/;/
- NIL_RE =
/nil|null|none/
- WHITESPACE_RE =
/\s+/m
- BOOLEAN_RE =
/true|false/
- NUMBER_RE =
/\d+(\.\d*)?/
- OPERATOR_RE =
/(?:>=|<=|!=|==|>|<|!|and|not|or)/
- STRING_RE =
/ (?: "([^"\\]*(?:\\.[^"\\]*)*)" | '([^'\\]*(?:\\.[^'\\]*)*)' ) /xm
- IDENTIFIER_RE =
/[a-zA-Z_][a-zA-Z0-9_]*/
- NAME_RE =
/ #{IDENTIFIER_RE} (?:\.[a-zA-Z0-9][a-zA-Z0-9_-]*)* /x
- NAMED_ARGS_RE =
/ (#{NAME_RE})(?:#{WHITESPACE_RE})? : (?:#{WHITESPACE_RE})?(#{STRING_RE}|#{NUMBER_RE}|#{NAME_RE}) /x