PHP 8.2.31
Preview: substitute_into-i.yaml Size: 778 B
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/TemplatePage/substitute_into-i.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: 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 <tt>substitute_array</tt> (below), which examples a block of the template once for each row in the array.
- !ruby/struct:SM::Flow::P 
  body: "This routine also copes with the <tt>IF:</tt><em>key</em> 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"
full_name: TemplatePage#substitute_into
is_singleton: false
name: substitute_into
params: (lines, values)
visibility: public

Directory Contents

Dirs: 2 × Files: 5

Name Size Perms Modified Actions
Context DIR
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
- drwxr-xr-x 2024-03-03 22:50:13
Edit Download
1.83 KB lrw-r--r-- 2023-07-26 13:47:19
Edit Download
333 B lrw-r--r-- 2023-07-26 13:47:19
Edit Download
736 B lrw-r--r-- 2023-07-26 13:47:19
Edit Download
778 B lrw-r--r-- 2023-07-26 13:47:19
Edit Download
439 B lrw-r--r-- 2023-07-26 13:47:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).