Skip to content

Instantly share code, notes, and snippets.

@nissuk
Created January 19, 2011 03:48
Show Gist options
  • Save nissuk/785658 to your computer and use it in GitHub Desktop.
Save nissuk/785658 to your computer and use it in GitHub Desktop.
/* var */ my_zen_settings = {
'variables': {
'lang': 'ja',
'locale': 'ja-JP',
'charset': 'UTF-8',
'profile': 'xhtml',
'indentation': ' ',
'jquery_version': '1.5.0',
'jquery_ui_version': '1.8.9',
'jquery_validation_version': '1.7',
'jquery_cycle_version': '2.88',
'swfobject_version': '2.2',
'yui_version': '3.3.0',
'jquery_ui_thema': 'redmond'
},
'html': {
'snippets': {
// JavaScript Library (from CDN)
'script:jq': '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/${jquery_version}/jquery.min.js"></script>',
'script:jqui': '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/${jquery_ui_version}/jquery-ui.min.js"></script>',
'script:jqval': '<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/${jquery_validation_version}/jquery.validate.min.js"></script>',
'script:jqcycle': '<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.cycle/${jquery_cycle_version}/jquery.cycle.all.min.js"></script>',
'script:swf': '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/${swfobject_version}/swfobject_src.js"></script>',
'script:html5': '<!--[if IE]>\n\t<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>\n<![endif]-->',
// XHTML Mobile 1.0
'html:xm': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">\n' +
'<html xmlns="http://www.w3.org/1999/xhtml" lang="${lang}" xml:lang="${lang}">\n' +
'<head>\n' +
' <meta http-equiv="content-type" content="application/xhtml+xml; charset=${charset}" />\n' +
' <title></title>\n' +
'</head>\n' +
'<body>\n\t${child}|\n</body>\n' +
'</html>',
// JavaScript
'fn': 'function(|){\n \n}',
'fn:1': 'function(|){ }',
'fn:a': '(function(){\n |\n})();',
'jq:r': '\\$(function(){\n |\n});', // $...
// PHP
'echo': '<?php echo | ?>'
},
'abbreviations': {
}
},
'css': {
'snippets': {
'@i:reset': '@import url(http://yui.yahooapis.com/${yui_version}/build/cssreset/reset-min.css);',
'@i:base': '@import url(http://yui.yahooapis.com/${yui_version}/build/cssbase/base-min.css);',
'@i:fonts': '@import url(http://yui.yahooapis.com/${yui_version}/build/cssfonts/fonts-min.css);',
'@i:jqui': '@import url(http://ajax.googleapis.com/ajax/libs/jqueryui/${jquery_ui_version}/themes/${jquery_ui_thema}/jquery-ui.css);'
},
'abbreviations': {
'yui+': '@i:reset+@i:base+@i:fonts'
}
},
'js': {
'extends': 'html'
},
'php': {
'extends': 'html'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment