mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-28 17:20:22 +00:00
Added Handlebars language
This commit is contained in:
@@ -591,6 +591,14 @@ Haml:
|
||||
type: markup
|
||||
primary_extension: .haml
|
||||
|
||||
Handlebars:
|
||||
type: markup
|
||||
lexer: Text only
|
||||
primary_extension: .handlebars
|
||||
extensions:
|
||||
- .handlebars
|
||||
- .hbs
|
||||
|
||||
Haskell:
|
||||
type: programming
|
||||
color: "#29b544"
|
||||
|
||||
6
samples/Handlebars/basic.handlebars
Normal file
6
samples/Handlebars/basic.handlebars
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="entry">
|
||||
<h1>{{title}}</h1>
|
||||
<div class="body">
|
||||
{{body}}
|
||||
</div>
|
||||
</div>
|
||||
11
samples/Handlebars/each.hbs
Normal file
11
samples/Handlebars/each.hbs
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user