Blocks:capture

From Dwoo Docs

Jump to: navigation, search

Captures all the output within this block and saves it into {$.capture.default} by default, or {$.capture.name} if you provide another name.

capture([ string $name = 'default', [ string $assign = null, [ bool $cat = false ]]]) 
  • name : capture name, used to read the value afterwards
  • assign : if set, the value is also saved in the given variable
  • cat : if true, the value is appended to the previous one (if any) instead of overwriting itIf the cat parameter is true, the content will be appended to the existing content




Example :

{capture "foo"}
Anything in here wont show, it will be saved for later use..
{/capture}
Captured: {$.capture.foo}

Output :

Captured: Anything in here wont show, it will be saved for later use..
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.