Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ You will likely want to provide your own implementation of
`ResourceLoader` to hook into your application's template repository, and then tell jinjava about it:

```java
JinjavaConfig config = new JinjavaConfig();
JinjavaConfig config = JinjavaConfig.builder().build();

Jinjava jinjava = new Jinjava(config);
jinjava.setResourceLocator(new MyCustomResourceLocator());
Expand All @@ -87,7 +87,7 @@ jinjava.setResourceLocator(new MyCustomResourceLocator());
To use more than one `ResourceLocator`, use a `CascadingResourceLocator`.

```java
JinjavaConfig config = new JinjavaConfig();
JinjavaConfig config = JinjavaConfig.builder().build();

Jinjava jinjava = new Jinjava(config);
jinjava.setResourceLocator(new MyCustomResourceLocator(), new FileResourceLocator());
Expand Down
11 changes: 2 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<scope>runtime</scope>
</dependency>

<dependency>
Expand Down Expand Up @@ -216,19 +217,11 @@
<artifactId>value</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.hubspot.immutables</groupId>
<artifactId>hubspot-style</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.hubspot.immutables</groupId>
<artifactId>immutables-exceptions</artifactId>
</dependency>
<dependency>
<groupId>com.hubspot</groupId>
<artifactId>algebra</artifactId>
</dependency>

</dependencies>

<build>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hubspot/jinjava/Jinjava.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class Jinjava {
* Create a new Jinjava processor instance with the default global config
*/
public Jinjava() {
this(new JinjavaConfig());
this(JinjavaConfig.builder().build());
}

/**
Expand Down
Loading