lib/amber/static_page/render.rb
def render_assets(dest_dir)
      asset_files.each do |asset_file|
        src_file = File.join(@file_path, asset_file)
        dst_file = File.join(dest_dir, *@path, asset_file)
        Render::Asset.render(src_file, dst_file)
      end
    end
def render_assets(dest_dir)
      asset_files.each do |asset_file|
        src_file = File.join(@file_path, asset_file)
        dst_file = File.join(dest_dir, *@path, asset_file)
        Render::Asset.render(src_file, dst_file)
      end
    end
RAILS
 def render_locale(renderer, locale)
   if renderer && is_haml_template?(locale)
     renderer.render_to_string(:template => self.template_path(locale), :layout => false).html_safe
   else
     render_static_locale(locale).html_safe
   end
 end
 RAILS
 def render_static_locale(locale)
   content_files.each do |file_locale, content_file|
     if locale == file_locale
       return Render::View.new(self, self.mount_point).render({file: content_file}, {locale: file_locale})
     end
   end
   raise MissingTemplate.new(template_path(locale))
 end
 called only by render_to_file