query_string = args[:query_string] clean = query_string.clean || false message = section =~ /message/i ? " onload=\"javascript:startTimer();\"" : nil title = h1 = section.split.map{|w| w.capitalize}.join " " javascript = Mote.parse(File.read("#{Mutx::View.path}/javascript.mote"), self, []).call() styles = Mote.parse(File.read("#{Mutx::View.path}/styles.mote"), self, []).call() modals = Mote.parse(File.read("#{Mutx::View.path}/modals.mote"), self, []).call() args[:section] = section git_information = Mote.parse(File.read("#{Mutx::View.path}/git_information.mote"), self, [:section]).call(section:section) footer = Mote.parse(File.read("#{Mutx::View.path}/footer.mote"), self, []).call() template_file_path = File.read("#{Mutx::View.path}/#{Mutx::View::Sections.path_for(section)}.mote") content = Mote.parse(template_file_path, self, [:args]).call(args:args) puts "Section: #{section}".colorize(:green).on_red puts "Viewing #{Mutx::View.path}/#{Mutx::View::Sections.path_for(section)}.mote".colorize(:green).on_red section = section.gsub(" ","_").downcase navigation_bar = Mote.parse(File.read("#{Mutx::View.path}/navigation_bar.mote"), self, [:section]).call(section:section) ?>
'{{content}}
{{footer}}