mirror of
https://gitlab.com/TECHNOFAB/soonix.git
synced 2026-02-02 07:15:06 +01:00
feat(generator): add Mustache
This commit is contained in:
parent
7e3efd400c
commit
26e79ede19
6 changed files with 28 additions and 1 deletions
|
|
@ -30,6 +30,12 @@
|
|||
data.hello = "world";
|
||||
opts.template = ./fixtures/jinja_template;
|
||||
};
|
||||
mustache = {
|
||||
output = "mustache";
|
||||
generator = "mustache";
|
||||
data.hello = "world";
|
||||
opts.template = ./fixtures/mustache_template;
|
||||
};
|
||||
};
|
||||
in {
|
||||
suites."Soonix Tests" = {
|
||||
|
|
@ -53,6 +59,9 @@ in {
|
|||
|
||||
assert "-f ${finalFiles}/jinja" "should exist"
|
||||
assert_file_contains ${finalFiles}/jinja "Hello world"
|
||||
|
||||
assert "-f ${finalFiles}/mustache" "should exist"
|
||||
assert_file_contains ${finalFiles}/mustache "Hello world"
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue