Files
dotfiles/vim/vim.symlink/snippets/html.snippets
Nick Nisi 876672843b add dojo test file create snippet
dtestcase will instantly create a test file with dojo, dgrid, xstyle,
and put-selector loaded from a CDN.
2015-02-03 10:08:35 -06:00

32 lines
861 B
Plaintext

snippet attach
data-dojo-attach-point="${1}"
snippet type
data-dojo-type="${1}"
snippet dtestcase
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.2/dijit/themes/claro/claro.css">
</head>
<body class="claro">
<div id="main"></div>
<script>
var dojoConfig = {
async: true,
isDebug: true,
packages: [
{ name: 'dgrid', location: '//cdn.rawgit.com/SitePen/dgrid/v0.3.16' },
{ name: 'xstyle', location:'//cdn.rawgit.com/kriszyp/xstyle/v0.2.1' },
{ name: 'put-selector', location: '//cdn.rawgit.com/kriszyp/put-selector/v0.3.5' }
]
};
</script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.10.2/dojo/dojo.js"></script>
<script>
${1}
</script>
</body>
</html>