Example Page for Authoring Articles
By Ryan Florence, published 2011-07-01
If your article has assets, create a folder like this one and stick them there, and name the article index.
Markdown
Here’s a bulleted list:
- bullets
- bullets
Here’s a numbered list:
- item
- item
This is one paragraph. This sentence is part of that paragraph.
This is a new paragraph.
Code Blocks
Include code blocks like this:
var foo = bar;
Or from a file like this:
var ClassNameSwapper = new Class({
current: null,
initialize: function(element){
this.element = document.id(element);
this.attach();
},
attach: function(){
var self = this;
this.element.addEvent('click', function(event){
self.setCurrentTo(event.target);
});
},
setCurrentTo: function(target){
if (target == this.current) return;
if (this.current) this.current.removeClass('current');
this.current = $(target).addClass('current');
}
});
// usage
var nav = new ClassNameSwapper('main-nav');
The path is relative to the article’s folder.
Images
Place your image in the article’s directory and …

Or just get the image path if you need to do something fancier:
/2011/example//burger.png