v3.1.0
New Features
- Add method for sending HTML responses
- Add method for sending XML responses
- Add a check for LiteNode's update on server start
Details
While STE can effectively render HTML templates, it is a Simple Template Engine suitable for straightforward HTML architectures where the transferred data doesn't need complex manipulation. Therefore, LiteNode provides an html
method extending the response object, enabling users to employ another template engine with LiteNode.
The xml
method is particularly useful for API endpoints or responses where XML is the desired format, such as RSS feeds and sitemaps.
"The startServer
method now includes an update verification feature."
Changes
- feat: add update check with internet connectivity verification to startServer method
- feat: enhance startServer method to await update check and return server instance
- feat(response): add method for sending HTML responses
- feat(response): add method for sending XML responses
- feat(types): add TypeScript definition for html method
- feat(types): add TypeScript definition for xml method
- refactor: Improve clarity and efficiency of frontmatter validation
- refactor(STE): enhance template rendering with replacePlaceholders method
- refactor(processEach): improve placeholder resolution and recursive processing
- docs(paginator): add JSDoc comments and enhance pagination logic
- chore(release): bump version to 3.1.0