mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 14:15:04 -05:00
17 lines
417 B
Ruby
17 lines
417 B
Ruby
|
$:.unshift File.expand_path("../lib", File.dirname(__FILE__)) # For use/testing when no gem is installed
|
||
|
require 'octopress'
|
||
|
|
||
|
class JavascriptAssets < Liquid::Tag
|
||
|
def initialize(tag_name, options, tokens)
|
||
|
super
|
||
|
end
|
||
|
|
||
|
def render(context)
|
||
|
js_assets = Octopress::JSAssetsManager.new
|
||
|
js_assets.compile
|
||
|
js_assets.url
|
||
|
end
|
||
|
end
|
||
|
|
||
|
Liquid::Template.register_tag('javascript_assets_tag', JavascriptAssets)
|