Module: Wptemplates
- Defined in:
- lib/wptemplates.rb,
lib/wptemplates/ast.rb,
lib/wptemplates/utils.rb,
lib/wptemplates/parser.rb,
lib/wptemplates/regexes.rb,
lib/wptemplates/version.rb,
lib/wptemplates/preprocessor.rb
Defined Under Namespace
Modules: Node, Regexes, Utils
Classes: Link, Parser, Preprocessor, Soup, Template, Text
Constant Summary
collapse
- VERSION =
"0.0.3"
Class Method Summary
collapse
Class Method Details
.parse(text) ⇒ Object
7
8
9
10
|
# File 'lib/wptemplates.rb', line 7
def self.parse text
parser.parse(text)
parser.parse(preprocessor.preprocess(text))
end
|
.parser ⇒ Object
12
13
14
|
# File 'lib/wptemplates.rb', line 12
def self.parser
@parser ||= Parser.new
end
|
.preprocessor ⇒ Object
16
17
18
|
# File 'lib/wptemplates.rb', line 16
def self.preprocessor
@preprocessor ||= Preprocessor.new
end
|