Skip to content


Java handlebars to replace a literal with slash

I want to use handlerbars (com.github.jknack) in java to replace values in a string as follows: The output of this test is: testing handlerbars testValue – The expected output would be: testing handlerbars testValue – fooValue The replacement works fine when the literal is simple ( {{ test }} ), but it does not work when the literal contains a