Mercurial Hosting > luan
comparison core/src/luan/modules/Html.luan @ 391:2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 24 Apr 2015 14:05:52 -0600 |
parents | fb18724521d2 |
children | 55f9f74f1e55 |
comparison
equal
deleted
inserted
replaced
390:bfbbce690bba | 391:2f5cc9c2cbf0 |
---|---|
36 end | 36 end |
37 end | 37 end |
38 end | 38 end |
39 | 39 |
40 | 40 |
41 function simply_html_page(parts) | 41 function simply_html_head() %> |
42 local head = parts.head | |
43 %> | |
44 <!DOCTYPE html> | |
45 <html lang="en"> | |
46 <head> | |
47 <meta charset="utf-8"> | 42 <meta charset="utf-8"> |
48 <meta name="viewport" content="width=device-width, initial-scale=1"> | 43 <meta name="viewport" content="width=device-width, initial-scale=1"> |
49 | |
50 <% head and head() %> | |
51 | 44 |
52 <link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"> | 45 <link href="http://www.simplyhtml.org/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet"> |
53 <link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css"> | 46 <link rel="stylesheet" href="http://www.simplyhtml.org/assets/font-awesome/css/font-awesome.min.css"> |
54 <script src="http://www.simplyhtml.org/assets/jquery/jquery.min.js"></script> | 47 <script src="http://www.simplyhtml.org/assets/jquery/jquery.min.js"></script> |
55 | 48 |
56 <link href="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.css" rel="stylesheet"/> | 49 <link href="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.css" rel="stylesheet"/> |
57 <script src="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.js"></script> | 50 <script src="http://www.simplyhtml.org/assets/simplyhtml/simplyhtml.js"></script> |
58 </head> | 51 <% end |
59 <body> | 52 |
60 <% parts.body() %> | 53 function simply_html_body_bottom() %> |
61 | |
62 <script src="http://www.simplyhtml.org/assets/bootstrap/js/bootstrap.min.js"></script> | 54 <script src="http://www.simplyhtml.org/assets/bootstrap/js/bootstrap.min.js"></script> |
63 </body> | 55 <% end |
64 </html> | |
65 <% | |
66 end |