Access data in custom filters

26 views
Skip to first unread message

Travis Beauvais

unread,
Apr 26, 2015, 11:15:22 PM4/26/15
to liquid-t...@googlegroups.com
Is it possible for me to access the data in a custom filter? 

data = {'name' =>'travis'}
@template = Liquid::Template.parse(" {{ '*hi*' | textilize }} ")
@template.render(data, :filters => [TextFilter])

Reply all
Reply to author
Forward
0 new messages