Finish the transition from Spacebars to Jade

This commit is contained in:
Maxime Quandalle 2015-06-14 19:40:20 +02:00
parent a16b7cd69c
commit a41e07b37e
3 changed files with 14 additions and 17 deletions

View file

@ -5,3 +5,9 @@ template(name="editor")
autofocus=autofocus
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock
template(name="viewer")
+mentions
+emoji
+markdown
{{> UI.contentBlock }}

View file

@ -16,3 +16,11 @@ template(name="defaultLayout")
#content
+yield
template(name="notfound")
+message(label='page-not-found')
template(name="message")
.big-message.quiet(class=color)
h1 {{_ label}}
with(pathFor route='atSignIn')
p {{{_ 'page-maybe-private' this}}}

View file

@ -1,17 +0,0 @@
<template name="notfound">
{{ > message label='page-not-found'}}
</template>
<template name='message'>
<div class="big-message quiet {{ color }}">
<h1>{{_ label}}</h1>
{{#with pathFor route='atSignIn'}}
<p>{{{_ 'page-maybe-private' this}}}</p>
{{/with}}
</div>
</template>
<!-- XXX This should be moved to editor.jade but there is an issue with jade
handling of the markdown component. -->
<template name="viewer">{{#markdown}}{{#emoji}}{{#mentions}}{{> UI.contentBlock }}{{/mentions}}{{/emoji}}{{/markdown}}</template>