-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for concat expressions in HBS files
- Loading branch information
1 parent
4393d1e
commit ec41a75
Showing
4 changed files
with
98 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{t (concat "prefix" "." "simple")}} | ||
{{t (concat "prefix." (if true "with-if-first" "with-if-second"))}} | ||
{{t (concat "prefix.some-action" (if this.isCompact "-short"))}} | ||
{{t (concat "prefix." (if this.isEditing "edit" "new") ".label")}} | ||
{{t (if true "foo" (concat "prefix." (if this.isEditing "edit" "new") ".nested"))}} | ||
{{t (concat "prefix." this.dynamicKey ".not-missing")}} | ||
{{t (concat "prefix." (if true "a1" (if false "b1" (concat "c" (if false "1" "2")))) ".value")}} | ||
{{t (concat "prefix." (if true this.dynamicKey "key-that-should-exist") ".value")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
prefix: | ||
simple: Simple concatenation | ||
with-if-first: First condition | ||
with-if-second: Second condition | ||
some-action: Action that can be long | ||
some-action-short: Action | ||
edit: | ||
label: Label on edit branch | ||
nested: Nested concat on edit branch | ||
new: | ||
label: Label on new branch | ||
nested: Nested concat on new branch | ||
a1: | ||
value: Value | ||
b1: | ||
value: Value | ||
c1: | ||
value: Value | ||
c2: | ||
value: Value | ||
key-that-should-exist: | ||
value: value | ||
foo: Foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters