8
9
10
11
12
|
# File 'lib/jasonette/handler.rb', line 8
def self.call(template)
has_jasonette_handler = template.locals.include?("_jasonette_handler")
%{__already_defined = defined?(jason); jason ||= Jasonette::Template.load(self); if(jason && #{has_jasonette_handler}); jason.encode(_jasonette_handler, &Proc.new {#{template.source}}); else; if jason.has_layout?(#{template.object_id}); jason = jason.new_jason(#{template.object_id}); else; jason.jason(&Proc.new {#{template.source}}); end; end;
jason.target! unless ((__already_defined && __already_defined != "method") || #{has_jasonette_handler})}
end
|