Releases: erdos/stencil
v0.3.3 - bugfixes
Bugfixes
- Fixed bug in
TemplateVariables
type which made it always return an empty set of variables.
Imrovements
PreparedTemplate
andPreparedFragment
types now implementAutoCloseable
interface. Now they can be used in a try-with-resources block.- Added a
getAllFragmentNames
method to theTemplateVariables
type to query all imported fragment names for a prepared template object.
v0.3.2 - test cases and small bugfixes
The main focus of this project was to increase unit test coverage by writing test cases and removing unused code snippets.
Bugfixes
- fix exception when rendering to
InputStream
- modulo operator should be right-associative
v0.3.1 - small bugfixes
This is a small release that contains test cases and fixes for minor bugs. From this version, we are using Cloverage for checking the status unit test coverage.
Bug fixes
- Fix arithmetic of modulo and power operators.
Improvements
- Cache of fragment objects can be cleaned up.
v0.3.0 - Introducing Fragments
What is new
This release introduces the concept of document fragments. Fragments are a special type of templates that let the user embed parts of documents in the template. For example, headers and footers can be stored in distinct template documents so it is possible to reuse parts across documents.
Improvements
- Added support for
elseif
syntax. - Added example documents.
- New function:
xml()
lets you embed XML parts to the document. - Performance improvements by removing unnecessary parallelism.
v0.2.10 - a friendly command-line tool
The aim of this release is to build an useful command-line tool using Stencil for batch template processing. This included work on better error messages and many improvements on the standalone mode.
The stencil-core-0.2.10-linux
is a linux executable built with GraalVM for faster startup time and minimal dependency requirements.
Improvements
- Standalone mode has a help screen and some useful error messages were introduced.
- Added friendly error messages for many different template parsing errors.
- Added a build script to build standalone stencil to a native image for command-line usage.
v0.2.9
Improvements
- Added
resize-first
resizing strategy. - Added
elseif
/elsif
/elif
shorthands for writingelse if
. - Support for
strong
tags in thehtml()
function. - Added standalone mode for batch processing.
Bug fixes
- Table left/top borders are kept after hiding left column or top border.
- Bug on windows broke template rendering, see #20
v0.2.8
v0.2.7 - small improvements
- added
join()
string function
v0.2.6 - small fixes
Bugfixes
- Downgraded required minimum Clojure version to
1.8.0
- Fixed
.cleanup()
method inPreparedTemplate
instances. It should successfully delete temporary directory. - Fixed CircleCI build script by hard coding dependency versions.
Future
Actively working on a standalone CLI application to render documents in batch.