Skip to content

Instantly share code, notes, and snippets.

@theRemix
Created January 14, 2014 02:02
Show Gist options
  • Save theRemix/8411789 to your computer and use it in GitHub Desktop.
Save theRemix/8411789 to your computer and use it in GitHub Desktop.
templates for Fly-By-Night
Propeller Templates
propeller.html
<body>
<div id="content">
{{ partial 'header' }}
<h1>{{page.name}}</h1>
<span class="question">
2 + 3
</span>
<span class="answer">
{{(2 + 3)}}
</span>
{{ if user.logged_in }}
logged in
{{ end }}
{{ foreach blogs }}
<div class="blog_aerostat">
<h4> {{ title }} </h4>
<p> {{ body }} </p>
<div class="gallery">
{{ foreach gallery }}
<img src="{{path}}" />
{{ end }}
</div>
</div>
{{ end }}
{{ foreach news.newest(3) }}
<div class="recent_news">
<h5>{{ headline }}</h5>
<img src="{{ thumbnail.path }}" />
<div class="news_excerpt">
{{ body.excerpt(50) }}
</div>
</div>
{{ end }}
</div>
<div id="footer">
{{ page.contact.address }}
{{ foreach page.about_us.photos.recent(3) }}
<img src="{{path}}" />
{{ end }}
</div>
</body>
propeller.haml
%body
{{ partial 'header' }}
#content
%h1 {{page.name}}
%span.question
2 + 3
%span.answer
{{ (2 + 3) }}
{{ if user.logged_in }}
logged in
{{ end }}
{{ foreach blogs }}
.blog_aerostat
%h4 {{ title }}
%p {{ body }}
{{ foreach gallery }}
%img( src : "{{path}}" )
{{ end }}
{{ end }}
{{ foreach news.newest(3) }}
.recent_news
%h5 {{ headline }}
%img( src : "{{ thumbnail.path }}" )
.news_excerpt
{{ body.excerpt(50) }}
{{ end }}
#footer
{{ page.contact.address }}
{{ foreach page.about_us.photos.recent(3) }}
%img( src : "{{path}}" )
{{ end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment