variables and tags? Read URI to determine template Get template from DB, check permissions & authentication Get template from file Return static template 1. Parse snippets / global variables, segment variables and embed variables * Parse date string constants Parse {template_edit_date} and {current_time} If present, get cached template, then go to #7 2. Parse PHP on Input 3. Parse simple conditionals: segment, embed, global variables 4. Assign and parse preload_replace variables 5. Parse module and plugin tags 6. Parse PHP on Output Write cache file 7. Parse advanced conditionals 8. Process embedded templates Redirect 9. Parse User Defined global variables and others: {hits} {ip_address} {gzip_mode} {app_version} {group_title} {member_group} gotolow.com/parse-order
{if 'n' == 'y'} This bar is awesome! {/if} <h2>Bar Two</h2> {if 'y' == 'y'} This bar is awesome! {/if} {/if} <h3>Foo One</h3> <h3>Foo Two</h3> <h3>Foo Three</h3>
One</h2> {if 'n' == 'y'} This bar is awesome! {/if} <h2>Bar Two</h2> {if 'y' == 'y'} This bar is awesome! {/if} {/if} <h3>Foo One</h3> <h3>Foo Two</h3> <h3>Foo Three</h3>
<p>Lorem ipsum <a href="#">dolor</a> sit amet</p> <h3>Title 1.2</h3> <p>The lazy dog jumped over the <em>fox</em></p> <h2>Second title</h2> <h3>Title 2.1</h3> <embeds and malicious code> <h3>Title 2.2</h3> <blinks and marquees>
{exp:strip_html}<p>Lorem ipsum <a href="#"> dolor</a> sit amet</p>{/exp:strip_html} <h3>Title 1.2</h3> {exp:strip_html}<p>The lazy dog jumped over the <em>fox</em></p>{/exp:strip_html} <h2>Second title</h2> <h3>Title 2.1</h3> {exp:strip_html}<embeds>{/exp:strip_html} <h3>Title 2.2</h3> {exp:strip_html}<marquees>{/exp:strip_html}
{exp:strip_html}<p>Lorem ipsum <a href="#"> dolor</a> sit amet</p>{/exp:strip_html} <h3>Title 1.2</h3> {exp:strip_html}<p>The lazy dog jumped over the <em>fox</em></p>{/exp:strip_html} <h2>Second title</h2> <h3>Title 2.1</h3> {exp:strip_html}<embeds>{/exp:strip_html} <h3>Title 2.2</h3> {exp:strip_html}<marquees>{/exp:strip_html}