Combining types into one:
type HMPLTemplateFunctionOptions = HMPLIdentificationRequestInit[] | HMPLRequestInit | HMPLRequestInitFunction;
And also speeding up the code execution
Unclaimed project
Are you a maintainer of hmpl? Claim this project to take control of your public changelog and roadmap.
Changelog
π HMPL.js is a lightweight server-oriented template language for JavaScript. Fetch HTML, render it safely, and keep apps dynamic, modern, and small.
Combining types into one:
type HMPLTemplateFunctionOptions = HMPLIdentificationRequestInit[] | HMPLRequestInit | HMPLRequestInitFunction;
And also speeding up the code execution
One of the most anticipated and complex versions, adding a link between the request status and the value of the tag attribute.
<div class="{{requestStatus}} class1">Text</div>
{{#request
src="/api/getHTML"
bind="{{requestStatus}}"
}}{{/request}}
result:
<div class="hmpl-status-requestStatus-200 class1">Text</div>
This functionality will allow you to...
This new version features a long-awaited code update. We've improved the security of server responses and made routine work easier.
List of changes in this version:
get function, instead of 4 arguments, we made a props object, which is convenient to work with.3.2.4 to 3.2.7sanitizeConfig propertyRelease 3.0.5
Release 3.0.4