Questions tagged [handlebars.java]

Handlebars.java is a modern and full featured template engine and a java port of [handlebars]. It provides the power necessary to build semantic templates with the same syntax as [mustache]

64 questions
0
votes
1 answer

FileNotFoundException Using HandlebarsTemplateEngine with Sparkjava

I have a problem with spark. I am trying to load a view "base.hbs" but whenever i try to load it spark throws an FileNotFoundException I tried changing the constructor to new HandlebarsTemplateEngine("tried/different/paths/here"); but no luck. I…
0
votes
1 answer

Handlebars-proto and logstash-logback-encoder slf4j conflict

My project uses handlebars-proto to bind templates to json. Also i am trying to use logstash-logback-encoder to log in form of Json for logstash. Below are my compile dependencies ( along with other dependencies) compile…
0
votes
2 answers

Unexpected token ILLEGAL : how to remove "e; and lines breaks from JSON

I receive a jsonfrom the server when loading a page, and it gets populated in the page using Handelbars.java. Till now everything's fine. However I would like to get that jsonobject and store it on a javascriptobject this is where I fail. When I…
user1079425
-1
votes
1 answer

Regex replacement to remove whitespace between html tags

I'm currently working with HTML built from a mustache/handlebars template. The goal is to take the text after handlebars generates it and reduce its size by removing unnecessary whitespace characters, but keeping attribute values and content of…
Brokenlynx
  • 43
  • 1
  • 6
1 2 3 4
5