diaspora/app/views/templates/_templates.haml
danielgrippi 42276a73c8 remove old stream initialization from js pages; remove websocket js code
from the layout; rename templates to have a .jst extension
(JavaScriptTemplate?)
2012-01-07 14:23:26 -08:00

17 lines
523 B
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- ["header",
"feedback",
"static_text",
"stream_element",
"comment_stream",
"comment",
"status_message",
"activity_streams_photo",
"reshare",
"likes_info"].each do |template_name|
%script{:id => "#{template_name.gsub("_","-")}-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/#{template_name}.jst")