Skip to content

Commit

Permalink
Merge pull request github-linguist#288 from wagenet/handlebars
Browse files Browse the repository at this point in the history
Add Handlebars
  • Loading branch information
josh committed Dec 10, 2012
2 parents dcc2be0 + 0e20f6d commit 281cc98
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,14 @@ Haml:
type: markup
primary_extension: .haml

Handlebars:
type: markup
lexer: Text only
primary_extension: .handlebars
extensions:
- .handlebars
- .hbs

Haskell:
type: programming
color: "#29b544"
Expand Down
6 changes: 6 additions & 0 deletions samples/Handlebars/basic.handlebars
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="entry">
<h1>{{title}}</h1>
<div class="body">
{{body}}
</div>
</div>
11 changes: 11 additions & 0 deletions samples/Handlebars/each.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="post">
<h1>By {{fullName author}}</h1>
<div class="body">{{body}}</div>

<h1>Comments</h1>

{{#each comments}}
<h2>By {{fullName author}}</h2>
<div class="body">{{body}}</div>
{{/each}}
</div>

0 comments on commit 281cc98

Please sign in to comment.