Sha256: 7217fd73d2f9eafb9bfb4ef1c300ab860f12923052ebf9f9bc5f081d073e450c
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
# 3rd-party require 'liquid' # internal require 'jekyll/assets_plugin/renderer' module Jekyll module AssetsPlugin # Class that implements some useful liquid tags: # # # ##### stylesheet # # Renders `<link>` tag for a logical path: # # {% stylesheet foo.css %} # # => '<link type="text/css" rel="stylesheet" # href="/assets/foo-b39e528efc3afe2def4bbc39de17f2b82cd8bd0d.css"> # # You may omit extension so the following will give same result as above: # # {% stylesheet foo %} # # # ##### javascript # # Renders `<script>` tag for a logical path: # # {% javascript foo.js %} # # => '<script type="text/javascript" # src="/assets/foo-b39e528efc3afe2def4bbc39de17f2b82cd8bd0d.js"> # </script> # # You may omit extension so the following will give same result as above: # # {% javascript foo %} # # # ##### asset_path # # Renders asset path for an asset (useful for images): # # {% asset_path foo.jpg %} # # => '/assets/foo-b39e528efc3afe2def4bbc39de17f2b82cd8bd0d.jpg" # # class Tag < Liquid::Tag def render context Renderer.new(context, @markup).send :"render_#{@tag_name}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-0.3.0 | lib/jekyll/assets_plugin/tag.rb |