This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
}); | ||
|
||
|
||
##NEW! Using json files as bundles | ||
##Using json files as bundles | ||
Now you can choose between `.properties` and `.json` files. You can specify which one to use by using the `format` parameter in bundle configuration: | ||
|
||
|
||
|
@@ -72,7 +72,30 @@ As you can imagine the keys must match json keys structure, so for `panel.html` | |
} | ||
} | ||
|
||
##Linked Values in prorperties (New) | ||
Version 0.3.4 introduces a new attribute in bundle to enable linked values in properties definitions: `enableLinkedValues`. Making this to `true` allows properties to be defined as linked values. A value is linked by specifiying a key right after an `@` symbol. If the key is not defined, then it is not replaced. | ||
|
||
>bundle definition: | ||
``` | ||
bundle: { | ||
bundle: 'Application', | ||
lang: 'en-US', | ||
path: 'resources', | ||
noCache: true, | ||
enableLinkedValues: true | ||
} | ||
``` | ||
>Application_en-US.properties | ||
``` | ||
property.key.one=A single property | ||
[email protected] | ||
``` | ||
|
||
##Changelog | ||
|
||
|