Sha256: c5bd14e6905a3b3be5c63ca17293fda35a273c109943d7de8aefb49346021234
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 Bytes
Contents
# ---------------------------------------------------------------------------- # Frozen-string-literal: true # Copyright: 2012 - 2016 - MIT License # Encoding: utf-8 # ---------------------------------------------------------------------------- module Jekyll module Assets module Liquid module Filters ACCEPTABLE_FILTERS = [:css, :img, :asset_path, :stylesheet, :javascript, :style, :img, :js] # -------------------------------------------------------------------- ACCEPTABLE_FILTERS.each do |val| define_method val do |path, args = ""| Tag.send(:new, val, "#{path} #{args}", "").render(@context) end end end # ::Liquid::Template.register_filter( Filters ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems