Sha256: 9db7d401d6807fc20b8522de05a276a238e8307656eb155b562b07f338b9130d
Contents?: true
Size: 407 Bytes
Versions: 10
Compression:
Stored size: 407 Bytes
Contents
require 'noumenon/template' module Noumenon::Spec::ExampleTags class HelloWorldTag < Liquid::Tag def render(context) "Hello, world!" end end Liquid::Template.register_tag 'hello_world', HelloWorldTag module OppositeDayFilter def opposite_day(input) return "goodbye" if input == "hello" input end end Liquid::Template.register_filter(OppositeDayFilter) end
Version data entries
10 entries across 10 versions & 1 rubygems