Skip to content

Commit

Permalink
Updated TL
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbodart committed Mar 30, 2016
1 parent b5e48f1 commit ecaa226
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/optional.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ mvn:javax.servlet:javax.servlet-api:jar|sources:3.1.0

mvn:org.ccil.cowan.tagsoup:tagsoup:jar:1.2

mvn://repo.bodar.com/com.googlecode.lazyrecords:lazyrecords:pack|sources:2.30
mvn://repo.bodar.com/com.googlecode.lazyrecords:lazyrecords:pack|sources:2.32
2 changes: 1 addition & 1 deletion build/runtime.dependencies
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mvn://repo.bodar.com/com.googlecode.totallylazy:totallylazy:pack|sources:2.238
mvn://repo.bodar.com/com.googlecode.totallylazy:totallylazy:pack|sources:2.241
mvn://repo.bodar.com/com.googlecode.yadic:yadic:pack|sources:2.45
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static boolean shouldProfile(Request request) {

private Response decorate(Response response) throws IOException {
PropertyMap html = new PropertyMapParser().parse(response.entity().toString());
Templates group = Templates.defaultTemplates(getClass());
Templates group = Templates.templates(getClass()).addDefault().extension("html");
return response.entity(group.get("profile").render(Maps.map(
"response", html,
"requests", profilingData.requests(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public MatchFailureRenderer(BasePath basePath, final Redirector redirector) {
}

public String render(MatchFailure value) throws IOException {
Templates group = Templates.defaultTemplates(getClass());
Templates group = Templates.templates(getClass()).addDefault().extension("html");
Map<String,Object> model = new HashMap<>();
model.put("base", basePath);
model.put("status", value.status());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public SeeOtherRenderer(BasePath basePath) {

@Override
public String render(String value) throws Exception {
return Templates.defaultTemplates(getClass()).get("seeOther").
return Templates.templates(getClass()).addDefault().extension("html").get("seeOther").
render(Maps.map("base", basePath, "location", value));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ResponseHandlers addResponseHandlers(ResponseHandlers handlers) throws Ex

private Renderer<Map<String,Object>> lastExceptionsRenderer() {
return model -> {
Templates group = Templates.defaultTemplates(LastExceptionsResource.class);
Templates group = Templates.templates(LastExceptionsResource.class).addDefault().extension("html");
return group.get("lastExceptions").render(model);
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public StringTemplateDecorators(final Templates group, final Resolver resolver)
}

public StringTemplateDecorators(final URL templatesUrl, final Resolver resolver) {
this(Templates.defaultTemplates(uri(templatesUrl)), resolver);
this(Templates.templates(uri(templatesUrl)).addDefault().extension("st"), resolver);
}

public Decorator get(TemplateName templateName, Request request) {
Expand Down

0 comments on commit ecaa226

Please sign in to comment.