-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next major version #17
base: master
Are you sure you want to change the base?
Commits on Jul 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4beb7b7 - Browse repository at this point
Copy the full SHA 4beb7b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 178c283 - Browse repository at this point
Copy the full SHA 178c283View commit details -
BREAKING CHANGES $templates:lookup-param-from-restserver is now a sequence of functions of arity 1
Configuration menu - View commit details
-
Copy full SHA for 1175384 - Browse repository at this point
Copy the full SHA 1175384View commit details -
errors, ensure configuration is preserved
Error reporting: When a template function is not defined the error message will include the serialized node to help users figure out where the problem occurs. Ensure configuration is present in $model: Before, each time the configuration was retrieved it was first checked if it was present. This check is now moved to the places where users are able to modify the model and thus may remove it from the map. - add a new private function templates:process-children - templates:process will now check for the configuration to be present - now that the presence of configuration is ensured `templates:get-configuration` is no longer necessary as this can be expressed with a simple map lookup
Configuration menu - View commit details
-
Copy full SHA for 0c9747a - Browse repository at this point
Copy the full SHA 0c9747aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10e27d2 - Browse repository at this point
Copy the full SHA 10e27d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5939c6d - Browse repository at this point
Copy the full SHA 5939c6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b60ad4 - Browse repository at this point
Copy the full SHA 3b60ad4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebc9c02 - Browse repository at this point
Copy the full SHA ebc9c02View commit details -
refactor: templates:form-control for readability
Each case is now a private function of its own (form, input, select).
Configuration menu - View commit details
-
Copy full SHA for 42023cf - Browse repository at this point
Copy the full SHA 42023cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81361df - Browse repository at this point
Copy the full SHA 81361dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 442dcac - Browse repository at this point
Copy the full SHA 442dcacView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6d83b2 - Browse repository at this point
Copy the full SHA c6d83b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 137bb9e - Browse repository at this point
Copy the full SHA 137bb9eView commit details -
feat: allow lookup function again
- refactor initial functions - templates:apply#3 and eXist-db#4 - templates:render#3 - add function templates:configure called in all initial functions - attribute filtering function is now selected by configuration instead main benefit is the if condition does not need to be called each time
Configuration menu - View commit details
-
Copy full SHA for 29e5304 - Browse repository at this point
Copy the full SHA 29e5304View commit details -
feat: templates includes all common functions
- lib:include moved to templates:include - lib:parse-params is now moved to templates:parse-params - remove lib - last remaining lib function lib:resolve-apps is now apps:by-abbrev links are now added to the model under key 'app' declare default value for links of apps that were not found - delimiters are now part of the configuration and cannot be changed inside of templates - add example (and test) for reading template-path from model - refactor for speed and readability
Configuration menu - View commit details
-
Copy full SHA for 21f4298 - Browse repository at this point
Copy the full SHA 21f4298View commit details -
chore: ensure compatibility with exist7
- the default handling of duplicates when merging maps will change to use-first. Therefore set duplicate handling explicitly to use-last where it is crucial
Configuration menu - View commit details
-
Copy full SHA for 33fb0a5 - Browse repository at this point
Copy the full SHA 33fb0a5View commit details -
raise minimum processor version to 5.4.0
This is the first version that implements map:merge#2
Configuration menu - View commit details
-
Copy full SHA for a05aaef - Browse repository at this point
Copy the full SHA a05aaefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82d806b - Browse repository at this point
Copy the full SHA 82d806bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 582c740 - Browse repository at this point
Copy the full SHA 582c740View commit details -
[refactor] consolidate variable names
BREAKING CHANGES: - $templates:START_DELIMITER => $templates:CONFIG_START_DELIMITER - $templates:END_DELIMITER => $templates:CONFIG_END_DELIMITER - All errors are prefixed with E_ - All settings are prefixed with CONFIG_
Configuration menu - View commit details
-
Copy full SHA for fe34ee1 - Browse repository at this point
Copy the full SHA fe34ee1View commit details -
In an effort to declare all dependencies explicitly.
Configuration menu - View commit details
-
Copy full SHA for 0a48ec1 - Browse repository at this point
Copy the full SHA 0a48ec1View commit details -
Configuration menu - View commit details
-
Copy full SHA for acf8940 - Browse repository at this point
Copy the full SHA acf8940View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0f6f2e - Browse repository at this point
Copy the full SHA e0f6f2eView commit details -
- add comment if surround template was not found - avoid *-selector in XPath expression
Configuration menu - View commit details
-
Copy full SHA for 9438b78 - Browse repository at this point
Copy the full SHA 9438b78View commit details -
refactor: templates:parse-options
Simplify check for problematic options.
Configuration menu - View commit details
-
Copy full SHA for 5012b3f - Browse repository at this point
Copy the full SHA 5012b3fView commit details -
The $selected variable either contains the attribute setting an option as selected or an empty sequence.
Configuration menu - View commit details
-
Copy full SHA for 74237de - Browse repository at this point
Copy the full SHA 74237deView commit details -
refactor: make param resolvers public
This is in order to drop them from being the default in the next step.
Configuration menu - View commit details
-
Copy full SHA for 69b00c0 - Browse repository at this point
Copy the full SHA 69b00c0View commit details -
refactor: extract and rename modules
- apps is now tmpl-apps to make it obvious it is not an application module - tmpl-util contains utility functions that clobber up the core library (unused for the moment)
Configuration menu - View commit details
-
Copy full SHA for ea9f23f - Browse repository at this point
Copy the full SHA ea9f23fView commit details -
refactor: use utility module, build regexes
- build regular expressions for parse-params at configuration and re-use those throughout the code base - remove functions from template that are now in tmpl-util - use tmpl-util:* replacements in templates functions
Configuration menu - View commit details
-
Copy full SHA for 10c1777 - Browse repository at this point
Copy the full SHA 10c1777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 483b2f6 - Browse repository at this point
Copy the full SHA 483b2f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6faeef0 - Browse repository at this point
Copy the full SHA 6faeef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0017895 - Browse repository at this point
Copy the full SHA 0017895View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68631ca - Browse repository at this point
Copy the full SHA 68631caView commit details -
feat: transparently replace placeholders
This deprecates templates:parse-params as placeholders in text and attribute nodes will always be replaced. Before: `<span data-template="templates:parse-params">[[item]]</span>` Now : `<span>[[item]]</span>` Any data-template attribute with the value "templates:parse-params" is ignored.
Configuration menu - View commit details
-
Copy full SHA for f082729 - Browse repository at this point
Copy the full SHA f082729View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6474763 - Browse repository at this point
Copy the full SHA 6474763View commit details -
fix: do not ignore legacy template declarations
Always throw an error if a declared template function cannot be found. The attempt to ignore certain function names creates more problems than it solves as it does not incentivise to clean up templates when switching to the newer templating library. The test for templates with a legcacy declaration was apapted.
Configuration menu - View commit details
-
Copy full SHA for 57eeb86 - Browse repository at this point
Copy the full SHA 57eeb86View commit details -
test: adapt tests to exist 7.0.0-SNAPSHOT
eXist-db will now return status code 500 server error when an exeption is thrown during query execution (see eXist-db/exist#4639). Since the templating library is not concerned with routing we simply add this other accepted status code to the list. Tests expecting errors will pass with both satus code 400 and 500.
Configuration menu - View commit details
-
Copy full SHA for 7c57e0b - Browse repository at this point
Copy the full SHA 7c57e0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4616250 - Browse repository at this point
Copy the full SHA 4616250View commit details