Skip to content

Commit

Permalink
#capture and #iferror functions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ricciardi committed Sep 20, 2010
1 parent 7647a49 commit a8416bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/wikicloth/wiki_buffer/var.rb
Expand Up @@ -83,6 +83,9 @@ def default_functions(name,params)
end
when "#iferror"
params.first =~ /error/ ? params[1] : params[2]
when "#capture"
@options[:params][params.first] = params[1]
""
end
end

Expand Down

0 comments on commit a8416bf

Please sign in to comment.