Sha256: 1a32ce9add390e223bde729c051af43d36511755337ebfb19a3f08cc3df23fb3
Contents?: true
Size: 913 Bytes
Versions: 5
Compression:
Stored size: 913 Bytes
Contents
module Locomotive class MyPlugin include Locomotive::Plugin module Filters def filter(input) input end end class MyDrop < ::Liquid::Drop end class MyTag < ::Liquid::Tag end before_filter :my_method1 after_filter :my_method2 around_filter :my_method3 attr_accessor :custom_attribute def initialize_plugin self.custom_attribute = 'Value' end def to_liquid MyDrop.new end def config_template_file File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'config_template.html') end def self.liquid_filters Filters end def self.liquid_tags { 'my_tag' => MyTag } end def my_method1 'This is my before filter!' end def my_method2 'This is my after filter!' end def my_method3 'This is my around filter!' end end end
Version data entries
5 entries across 5 versions & 1 rubygems