2014-10-04 08:48:44 +02:00
< template name = "layout" >
< div class = "container" >
< h1 > MarkCloud< / h1 >
< hr >
{{> yield}}
< / div >
< / template >
< template name = "home" >
2014-10-04 08:56:18 +02:00
< p > This is a demo app. Click < a href = "new" > here< / a > to create a new document.< / p >
< p > After submitting the document you will be redirected to its permanent link< / p >
< p > This demo was built by < a href = "http://github.com/fazo96" > Enrico Fasoli (fazo96)< / a > in 45 minutes.< / p >
2014-10-04 08:48:44 +02:00
< / template >
< template name = "new" >
2014-10-04 08:56:18 +02:00
< p > Write your document in < a href = "https://help.github.com/articles/github-flavored-markdown/" > GitHub Flavored Markdown< / a > then submit it with the button. You will be redirected to its permanent link< / p >
2014-10-04 08:48:44 +02:00
< textarea id = "editor" class = "form-control" > < / textarea >
< button id = "new-btn" class = "btn btn-primary" > submit< / button >
< / template >
2014-10-04 08:56:18 +02:00
< template name = "docLayout" >
< div class = "container" > {{> yield}}< / div >
< / template >
2014-10-04 08:48:44 +02:00
< template name = "doc" >
2014-10-04 08:56:18 +02:00
{{#markdown}}{{text}}{{/markdown}}
< hr >
< div align = "center" > Powered by < a href = "/" > MarkCloud< / a > < / div >
2014-10-04 08:48:44 +02:00
< / template >