/
layout.haml
25 lines (25 loc) · 1021 Bytes
/
layout.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
!!! XML
!!! 1.1
%html(xmlns="http://www.w3.org/1999/xhtml")
%head
%meta(http-equiv="Content-Type" content="text/html; charset=utf-8" )
%meta(http-equiv="expires" content="0" )
%meta(http-equiv="Content-Script-Type" content="text/javascript" )
%meta(http-equiv="Content-Style-Type" content="text/css" )
%meta(http-equiv="X-UA-Compatible" content="IE=8")
%meta(name="author" content="MyAppAuthor")
%link(rel="icon" type="image/png" href="/favicon.png")
%title= @title
- if settings.css_files == :blob
%link(type="text/css" rel="stylesheet" href="/blob.css?modified=#{File.mtime('public/blob.css').to_i}" )
- else
- settings.css_files.each do |css|
%link(type="text/css" rel="stylesheet" href="/css/#{css}" )
- if settings.js_files == :blob
%script(type="text/javascript" src="/blob.js?modified=#{File.mtime('public/blob.js').to_i}")
- else
- settings.js_files.each do |js|
%script(type="text/javascript" src="/js/#{js}")
%body{id:@action}
%h1#title= @title
#content= yield