Skip to content

Commit

Permalink
APP-3110 Handlebars template implementation (finos#260)
Browse files Browse the repository at this point in the history
* APP-3110 Handlebars template engine implementation

* APP-3110 doc

* APP-3110 Post merge, updated getting-started guide

* APP-3110 http and template implementations as runtime dependencies

* APP-3110 reverted ./docs/index.md

* APP-3110 Updates implementation selection

* APP-3110 :symphony-bdk-http-api and :symphony-bdk-template-api as :symphony-bdk-core transitive dependencies

(cherry picked from commit edb1844)
  • Loading branch information
thibauult committed Oct 5, 2020
1 parent a40b8dc commit 1ffb9f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.symphony.bdk.template.handlebars;

import com.symphony.bdk.template.api.Template;
import com.symphony.bdk.template.api.TemplateEngine;
import com.symphony.bdk.template.api.TemplateException;

import com.github.jknack.handlebars.Handlebars;
import com.github.jknack.handlebars.io.FileTemplateLoader;
import com.github.jknack.handlebars.io.TemplateLoader;
import com.symphony.bdk.template.api.Template;
import com.symphony.bdk.template.api.TemplateEngine;
import com.symphony.bdk.template.api.TemplateException;
import org.apache.commons.io.FilenameUtils;
import org.apiguardian.api.API;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.symphony.bdk.template.handlebars;

import com.github.jknack.handlebars.Handlebars;
import com.symphony.bdk.template.api.Template;
import com.symphony.bdk.template.api.TemplateException;

import com.github.jknack.handlebars.Handlebars;
import org.apiguardian.api.API;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.symphony.bdk.template.handlebars;

import static org.junit.jupiter.api.Assertions.assertEquals;

import com.symphony.bdk.template.api.Template;
import com.symphony.bdk.template.api.TemplateException;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
Expand All @@ -13,6 +10,8 @@
import java.nio.file.Path;
import java.util.Collections;

import static org.junit.jupiter.api.Assertions.assertEquals;

class HandlebarsEngineTest {

private static final String EXPECTED_TEST_HBS = "<messageML>\nhello\n</messageML>\n";
Expand Down

0 comments on commit 1ffb9f7

Please sign in to comment.