Skip to content

Instantly share code, notes, and snippets.

@ibolmo
Created December 11, 2009 19:47
Show Gist options
  • Select an option

  • Save ibolmo/254458 to your computer and use it in GitHub Desktop.

Select an option

Save ibolmo/254458 to your computer and use it in GitHub Desktop.
How Shell/Forge can interpret Demos.
<html>
<head>
<title>Demo Title</title>
<meta name="description">Demo Description</meta>
<style class="shell css">
/* Demo CSS */
</style>
<script src="deps.js" title="Authors can generate a deps.js, or include from a temp (.gitignored) file."></script>
<script class="shell js requires" src="../Source/MyPlugin.js" title="'requires' help builders"></script>
<script class="shell js">
/* Demo Code */
</script>
</head>
<body class="shell html">
<p>My HTML</p>
</body>
</html>
<html>
<head>
<title>Demo Title</title>
<meta name="description">Demo Description</meta>
<link rel="stylesheet" href="demo.css" class="shell css" />
<script src="deps.js" title="Authors can generate a deps.js, or include from a temp (.gitignored) file."></script>
<script class="shell js requires" src="../Source/MyPlugin.js" title="'requires' help builders"></script>
<script class="shell js" src="demo.js"></script>
</head>
<body class="shell html">
<p>My HTML</p>
</body>
</html>
<!--
---
description: My demo description.
requires: MyPlugin
...
-->
<html>
<head>
<title>Optional Title. Description in YAML header can be the title. If present, title will be used instead</title>
<style class="shell css">
/* Demo CSS */
</style>
<script src="deps.js" title="Authors can generate a deps.js, or include from a temp (.gitignored) file."></script>
<script src="../Source/MyPlugin.js" title="Seems redundant with YAML. See other solution."></script>
<script class="shell js">
/* Demo Code */
</script>
</head>
<body class="shell html">
<p>My HTML</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment