818
Du
dustymarkdown / files
dustymarkdown / static / index.html
3.5 KB
1<!doctype html> <!--[if lt IE 9 ]> <html class="no-js oldie" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]> <!--> <html class="no-js" lang="en"> <!-- <![endif]--> <head> <meta charset="utf-8"> <title>Dusty Markdown</title> <meta name="description" content="simple command line content manager"> <meta name="author" content="@xonecas"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="apple-touch-icon" href="/apple-touch-icon.png"> <link rel="stylesheet" href="css/style.css?v=2"> <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'> <script src="js/libs/modernizr-1.7.min.js"></script> </head> <body> <header> <h1>Dusty Markdown</h1> </header> <section id="main" class="center"> <blockquote> <p>This project is the new content manager under <a href="http://xonecas.com">xonecas.com</a>. It's very minimal and light, developer friendly. The idea is that you can write the dynamic content in markdown and use dust to combine static and dynamic. </p> </blockquote> <h2>This app is only possible thanks to:</h2> <ul> <li>HTML5 Boilerplate</li> <li>Dust.js</li> <li>Markdown</li> </ul> <h3>The gist:</h3> <p>So the build.js file grabs the source files you write and compiles them into static assets (@TODO add compression and concatenation). The way it knows what to do with your files is because it expects a specific folder/naming convention.</p> <p>This app is the example of that convention:</p> <pre><code> root/ 2 build.js // compiler 3 server.js // static asset provider 4 5 templates/ // home to your pages/views 6 index.dust // root of the app 7 pagename.dust // pagename becomes 8 // http://server/pagename 9 10 markdown/ // where your content goes 11 keyname.md // you can refer to this in 12 // your template using {keyname} 13 section_keyname.md // you can refer to several 14 // keynames using {#section} 15 htdocs/ // your static content 16 ... 17 ... // organize it how you want it 18 // just remember that the .html 19 // files are created by build.js 20 // so don't edit them by hand 21</code></pre><p>The default htdocs folder is from HTML5 Boilerplate and so is the static file server. One difference is that this app uses Ender for the js library, but you're welcome to change it. There is also a very simple unique visitors/request counter.</p> <p>See the example page <a href="/about">here</a>.</p> <h2>Dependencies</h2> <ul> <li><code>npm install connect dust node-markdown</code></li> </ul> <h2>More docs:</h2> <ul> <li><a href="http://h5bp.com/"><em>HTML5 Boilerplate</em> →</a></li> <li><a href="http://akdubya.github.com/dustjs/"><em>Dust</em> →</a></li> <li><a href="http://daringfireball.net/projects/markdown/basics"><em>Markdown</em> →</a></li> </ul> </section> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script> <script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script> <script src="js/plugins.js"></script> <script src="js/script.js"></script> <!--[if lt IE 7 ]> <script src="js/libs/dd_belatedpng.js"></script> <script>DD_belatedPNG.fix("img, .png_bg");</script> <![endif]--> </body> </html>