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

Version Path
noumenon-0.2.3 lib/noumenon/spec/example_tags.rb
noumenon-0.2.2 lib/noumenon/spec/example_tags.rb
noumenon-0.2.1 lib/noumenon/spec/example_tags.rb
noumenon-0.2.0 lib/noumenon/spec/example_tags.rb
noumenon-0.1.7 lib/noumenon/spec/example_tags.rb
noumenon-0.1.6 lib/noumenon/spec/example_tags.rb
noumenon-0.1.5 lib/noumenon/spec/example_tags.rb
noumenon-0.1.4 lib/noumenon/spec/example_tags.rb
noumenon-0.1.3 lib/noumenon/spec/example_tags.rb
noumenon-0.1.2 lib/noumenon/spec/example_tags.rb