Last active
October 13, 2015 15:07
-
-
Save ytkhs/4213803 to your computer and use it in GitHub Desktop.
Cakephp2.1+ layout template with Twig plugin when use autoescape.(using https://github.com/predominant/TwigView )
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{html.docType('html5')|raw}} | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>{{title_for_layout}} | SITE_NAME</title> | |
{{html.meta('favicon.ico', '/favicon.ico', {'type':'icon'})|raw}} | |
<meta name="Keywords" content="KEYWORD_FOR_SITE" /> | |
<meta name="Description" content="DESCRIPTION_FOR_SITE" /> | |
{{_view.fetch('meta')|raw}} | |
{{_view.fetch('css')|raw}} | |
</head> | |
<body> | |
{{_view.fetch('content')|raw}} | |
{{html.script('//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js')|raw}} | |
{{html.scriptStart()|raw}} | |
if(!window.jQuery) { | |
var sNew = document.createElement("script"); | |
sNew.async = true; | |
sNew.src = "/js/jquery.1.8.3.js"; | |
var s0 = document.getElementsByTagName('script')[0]; | |
s0.parentNode.insertBefore(sNew, s0); | |
} | |
{{html.scriptEnd()|raw}} | |
{{_view.fetch('script')|raw}} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment