Flowdock
method

substitute_into

Importance_1
v1_8_7_330 - Show latest stable - 0 notes - Class: TemplatePage
substitute_into(lines, values) public

Substitute a set of key/value pairs into the given template. Keys with scalar values have them substituted directly into the page. Those with array values invoke substitute_array (below), which examples a block of the template once for each row in the array.

This routine also copes with the IF:key directive, removing chunks of the template if the corresponding key does not appear in the hash, and the START: directive, which loops its contents for each value in an array

Show source
Register or log in to add new notes.