croxton/Stash — pull request #10 by rsanchez (2012-06-21 20:11:08+00:00)
Title: Feature/magic call

There's two things in this pull:

1) In EE 2.5+ we can now use the magic __call method in modules/plugins. So I added the following shortcut methods:

Single tag

{exp:stash:your_var_name}

//equivalent to

{exp:stash:get name="your_var_name"}

Tag pair

{exp:stash:your_var_name}
CONTENT
{/exp:stash:your_var_name}

//equivalent to

{exp:stash:set name="your_var_name"}
CONTENT
{/exp:stash:set}

2) added append="yes" and prepend="yes" params to stash:set

Not a big change, I know. To me this shortcut syntax feels more natural. What do you think?