diff options
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown index 9f40e28..594a55f 100644 --- a/README.markdown +++ b/README.markdown @@ -450,6 +450,17 @@ Loads a YAML file containing an array, string, or hash, and returns the data in *Type*: rvalue. +#### `load_module_metadata` + +Loads the metadata.json of a target module. Can be used to determine module version and authorship for dynamic support of modules. + + ~~~ + $metadata = load_module_metadata('archive') + notify { $metadata['author']: } + ~~~ + +*Type*: rvalue. + #### `lstrip` Strips spaces to the left of a string. *Type*: rvalue. |