Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add dokuwiki functions to template parser
this commit adds an additional syntax to bureaucracy template parser that introduces simple functions calls: @function_name(arg)@ the functions are parsed after the fields replacements. this will work: @function(@@some_field@@)@ currently four functions are supported: - @curns()@ - @getns()@ - @nons()@ - @p_get_first_heading()@ only functions with one argument are supported i've found this useful when using bureaucracy together with struct's "Page" field. My use cases: 1. Use the page title in template replacement: @p_get_first_heading(@@schema.page@@) 2. In template action as new page name: action template tpl:template1 "somens:@nons(@@schema.page@@)@"
- Loading branch information