-
Notifications
You must be signed in to change notification settings - Fork 27
Home
miroshnikov edited this page Mar 27, 2015
·
7 revisions
#jSmart - JavaScript template engine
- Getting Started
- Syntax
- Variable modifiers
- capitalize
- cat
- count
- count_characters
- count_paragraphs
- count_sentences
- count_words
- date_format
- default
- escape
- indent
- lower
- nl2br
- regex_replace
- replace
- spacify
- string_format
- strip
- strip_tags
- truncate
- upper
- wordwrap
- Built-in Statements and Functions
- {append}
- {assign}
- {block}
- {break}
- {call}
- {config_load}
- {continue}
- {debug}
- {capture}
- {eval}
- {extends}
- {for} {forelse}
- {foreach} {foreachelse}
- {function}
- {javascript}
- {if},{elseif},{else}
- {include}
- {include_javascript}
- {include_php}
- {insert}
- {ldelim},{rdelim}
- {literal}
- {nocache}
- {php}
- {section} {sectionelse}
- {strip}
- {while}
- Plugins
- {counter}
- {cycle}
- {eval}
- {fetch}
- {html_checkboxes}
- {html_image}
- {html_options}
- {html_radios}
- {html_select_date}
- {html_select_time}
- {html_table}
- {mailto}
- {math}
- {textformat}
- API
- fetch - returns the template output
- prototype.registerPlugin - dynamically register plugins
- escape_html
- addDefaultModifier
- registerFilter
- configLoad
- clearConfig
- prototype.getConfig - returns config text
- prototype.getTemplate - returns template text
- prototype.getFile - return file's text
- prototype.getJavascript - return JavaScript code
- prototype.auto_literal
- jSmart.prototype.debugging
- prototype.left_delimiter, prototype.right_delimiter
- Extending jSmart With Plugins
- How to include one template in another
- Template inheritance (extending) and overriding
- Caching
- How to use Smarty template in Javascript
- How to load templates from separate external files