class Octopress::Ink::Assets::Coffeescript
Public Instance Methods
add()
click to toggle source
# File lib/octopress-ink/assets/coffeescript.rb, line 10 def add Plugins.add_js_tag tag Plugins.static_files << StaticFileContent.new(content, destination) end
content()
click to toggle source
Calls superclass method
# File lib/octopress-ink/assets/coffeescript.rb, line 15 def content begin require 'jekyll-coffeescript' rescue LoadError raise "Add gem jekyll-coffeescript to Gemfile (or gemspec)." end ::CoffeeScript.compile(super) end
destination()
click to toggle source
# File lib/octopress-ink/assets/coffeescript.rb, line 24 def destination File.join(base, plugin.slug, File.basename(file, '.*') << '.js') end
tag_path()
click to toggle source
# File lib/octopress-ink/assets/coffeescript.rb, line 6 def tag_path Filters.expand_url(File.join(dir, File.basename(file, '.*') << '.js')) end