Skip to content

Commit

Permalink
Helpers namespace #525
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Aug 2, 2016
1 parent 6dbf2a9 commit f9dd86b
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.github.jknack.handlebars.issues;

import java.io.IOException;

import org.junit.Test;

import com.github.jknack.handlebars.Helper;
import com.github.jknack.handlebars.Options;
import com.github.jknack.handlebars.v4Test;

public class Hbs525 extends v4Test {

@Test
public void helperNameSpace() throws IOException {
shouldCompileTo("{{nav.render 'main'}}", $("helpers", $("nav.render", new Helper<String>() {
@Override
public Object apply(final String context, final Options options) throws IOException {
return context;
}
})), "main");
}

}

0 comments on commit f9dd86b

Please sign in to comment.