def render(context)
site = context.registers[:site]
config = site.config['asset_pipeline'] || {}
pipeline, cached = Pipeline.run(@nodelist.first, @markup.strip, site.source,
site.dest, self.class.tag_name, self.class.output_type, config)
if pipeline.is_a?(Pipeline)
pipeline.assets.each do |asset|
config = JekyllAssetPipeline::DEFAULTS.merge(config)
staging_path = File.expand_path(File.join(site.source, config['staging_path']))
site.static_files << Jekyll::StaticFile.new(site, staging_path,
asset.output_path, asset.filename)
end unless cached
return pipeline.html
else
return nil
end
end