diff options
Diffstat (limited to '_plugins/hello.rb')
| -rw-r--r-- | _plugins/hello.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/_plugins/hello.rb b/_plugins/hello.rb new file mode 100644 index 0000000..4c615bb --- /dev/null +++ b/_plugins/hello.rb @@ -0,0 +1,15 @@ +module Jekyll + class HelloWorld < Liquid::Tag + + def initialize(tag_name, text, tokens) + super + @text = text + end + + def render(context) + "Hello World, #{@text}!" + end + end +end + +Liquid::Template.register_tag('hello', Jekyll::HelloWorld)
\ No newline at end of file |