Skip to content

Commit

Permalink
added utility method slurp()
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftworks committed Apr 7, 2014
1 parent 23e849b commit 7fddee6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Kurious/Plugin/Xslate.pm
Expand Up @@ -116,5 +116,8 @@ sub __function_stash_push {
sub __function_stash_pop {
return mark_raw(pop @stash);
}
sub __function_stash_slurp {
return mark_raw(join '', splice @stash, 0, @stash);
}

1;

0 comments on commit 7fddee6

Please sign in to comment.