add dojo test file create snippet
dtestcase will instantly create a test file with dojo, dgrid, xstyle, and put-selector loaded from a CDN.
This commit is contained in:
@@ -2,3 +2,30 @@ 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>
|
||||
|
||||
Reference in New Issue
Block a user