-
Notifications
You must be signed in to change notification settings - Fork 0
/
thoughts
48 lines (30 loc) · 1.08 KB
/
thoughts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# namespaces are initially global and may differ from the real applications class namespaces
# values templax initially has to be passed to to start a parsing process
# the template is required in all cases - the markup and hooks can be ignored
parsing set
- template / required
- markup
- hooks
[Templax]
// parses the requested template based on the given markup and hooks
// by preparing the given params into a parsing set
::parse( template, markup, hooks, options )
// builds a parsing set out of the given params
::buildParsingSet( template, markup, hooks, options )
@return \ParsingSet;
// processes the parsing set into content
::processParsingSet( $pSet, $callback )
@return string
// IDEAS
[template manager]
add different template registration
"template_file" => array(
"options" => array(),
"markup" => array(),
"templates" => array(
"marker_of_template_1" => array() // configuration,
"marker_of_template_2" => array() // configuration,
"marker_of_template_3" => array() // configuration,
etc..
)
)