AllowPublish}}
				<a id="publish" href="#">{{if .ID}}update{{else}}publish{{end}}</a>
				<input type="checkbox" name="public" id="public"{{if .Public}} checked="checked"{{end}} /><label for="public">public</label>
            {{end}}
		</header>

		<pre id="editor" class="editor">{{.Content}}</pre>

		<div id="preview-wrap">
			<iframe id="preview"></iframe>
		</div>

<script src="/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace.js" type="text/javascript" char