Skip to content

Commit b987739

Browse files
authored
codecov button + minor readme changes
1 parent f55ab7a commit b987739

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

README.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
[![Become a Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://patreon.com/edgarespina)
22
[![Build Status](https://travis-ci.org/jknack/handlebars.java.svg?branch=master)](https://travis-ci.org/jknack/handlebars.java)
33
[![coveralls.io](https://img.shields.io/coveralls/jknack/handlebars.java.svg)](https://coveralls.io/r/jknack/handlebars.java?branch=master)
4+
[![codecov](https://codecov.io/gh/jknack/handlebars.java/branch/master/graph/badge.svg)](https://codecov.io/gh/jknack/handlebars.java)
45
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.jknack/handlebars/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.jknack/handlebars)
56
[![javadoc](https://javadoc.io/badge/com.github.jknack/handlebars.svg)](https://javadoc.io/doc/com.github.jknack/handlebars)
67

78
Handlebars.java
89
===============
910
## Logic-less and semantic Mustache templates with Java
1011

12+
```java
13+
Handlebars handlebars = new Handlebars();
14+
15+
Template template = handlebars.compileInline("Hello {{this}}!");
16+
17+
System.out.println(template.apply("Handlebars.java"));
18+
```
19+
20+
Output:
21+
```
22+
Hello Handlebars.java!
23+
```
24+
1125
Handlebars.java is a Java port of [handlebars](http://handlebarsjs.com/).
1226

1327
Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.
@@ -35,21 +49,6 @@ Handlebars provides the power necessary to let you build semantic templates effe
3549

3650
SNAPSHOT versions are NOT synchronized to Central. If you want to use a snapshot version you need to add the https://oss.sonatype.org/content/repositories/snapshots/ repository to your pom.xml.
3751

38-
## Hello Handlebars.java
39-
40-
```java
41-
Handlebars handlebars = new Handlebars();
42-
43-
Template template = handlebars.compileInline("Hello {{this}}!");
44-
45-
System.out.println(template.apply("Handlebars.java"));
46-
```
47-
48-
Output:
49-
```
50-
Hello Handlebars.java!
51-
```
52-
5352
### Loading templates
5453
Templates are loaded using the ```TemplateLoader``` class. Handlebars.java provides three implementations of a ```TemplateLoader```:
5554
* ClassPathTemplateLoader (default)
@@ -1064,6 +1063,10 @@ Hello {{#child}}{{this.value}}{{/child}}
10641063

10651064
[Bugs, Issues and Features](https://github.com/jknack/handlebars.java/issues)
10661065

1066+
## Donate
1067+
1068+
Buy [Edgar](https://patreon.com/edgarespina) a beer!
1069+
10671070
## Related Projects
10681071
* [Handlebars.js](http://handlebarsjs.com/)
10691072
* [Try Handlebars.js](http://tryhandlebarsjs.com/)

0 commit comments

Comments
 (0)