Class: Jekyll::Reload::Tag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::Reload::Tag
- Defined in:
- lib/jekyll/reload/tag.rb
Instance Method Summary collapse
Instance Method Details
#render(ctx) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/jekyll/reload/tag.rb', line 11 def render(ctx) config = ctx.registers[:site].config["reloader"] path = "http://#{config['host']}:#{config['port']}/livereload.js" a = +"<script type='text/javascript' src='#{path}'>" a << "<!-- EMPTY -->" a << "</script>" end |