Arbit - project tracking

Dwoo

#59: Add a way to return variables from a template to the including one and to the main php caller

Issue revisions

  • new by Jordi Boggiano at 2010-M-06 3:39
  • assigned by Jordi Boggiano at 2010-M-06 3:39
  • assigned by Jordi Boggiano at 2010-M-06 3:39
  • closed by Jordi Boggiano at 2010-M-07 20:58
Type feature feature
State closed closed
Priority normal normal
Resolution implemented implemented
Assigned to Jordi Boggiano
Scheduled for 1.2.0
Affected versions svn /trunk
Affected components Core, Plugins
Last change Sunday 7 March 2010 20:58:51 UTC by Jordi Boggiano

Short description

There are two components to this:

  • A {return} plugin that you call like {return $foo [as] bar[, $x [as] baz]} or {return bar=$foo baz=$x} (any comments appreciated) ?

  • setReturnedVariable() getReturnedVariables() methods on the dwoo object to allow everything to interract

Note:

  • {include} should call getReturnedVariables() and merge those vars into the current scope.

  • Jordi Boggiano at Saturday 6 March 2010 03:39:33 UTC

    Scheduling for 1.2, if anyone wants to submit a patch feel free :)

  • Jordi Boggiano at Sunday 7 March 2010 20:58:51 UTC

    Implemented in revision #346