-
-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for load_props, added missing load_xml tests
- Loading branch information
Showing
6 changed files
with
125 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this.is = a properties file |
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 @@ | ||
<this>is some xml</this> |
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 |
---|---|---|
@@ -1,14 +1,32 @@ | ||
# Load | ||
|
||
The `load`/`strload` operator allows you to load in content from another file referenced in your yaml document. | ||
The load operators allows you to load in content from another file. | ||
|
||
Note that you can use string operators like `+` and `sub` to modify the value in the yaml file to a path that exists in your system. | ||
|
||
Use `strload` to load text based content as a string block, and `load` to interpret the file as yaml. | ||
You can load files of the following supported types: | ||
|
||
|Format | Load Operator | | ||
| --- | --- | | ||
| Yaml | load | | ||
| XML | load_xml | | ||
| Properties | load_props | | ||
| Plain String | load_str | | ||
|
||
Lets say there is a file `../../examples/thing.yml`: | ||
|
||
```yaml | ||
a: apple is included | ||
b: cool | ||
``` | ||
and a file `small.xml`: | ||
|
||
```xml | ||
<this>is some xml</this> | ||
``` | ||
|
||
and `small.properties`: | ||
|
||
```properties | ||
this.is = a properties file | ||
``` |
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
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