Skip to content

Releases: erdos/stencil

v0.3.3 - bugfixes

05 Jun 06:21
Compare
Choose a tag to compare

Bugfixes

  • Fixed bug in TemplateVariables type which made it always return an empty set of variables.

Imrovements

  • PreparedTemplate and PreparedFragment types now implement AutoCloseable interface. Now they can be used in a try-with-resources block.
  • Added a getAllFragmentNames method to the TemplateVariables type to query all imported fragment names for a prepared template object.

v0.3.2 - test cases and small bugfixes

30 May 08:47
Compare
Choose a tag to compare

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

23 May 09:19
Compare
Choose a tag to compare

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

22 May 16:25
Compare
Choose a tag to compare

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

13 Mar 11:40
Compare
Choose a tag to compare

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

11 Mar 12:46
Compare
Choose a tag to compare

Improvements

  • Added resize-first resizing strategy.
  • Added elseif/elsif/elif shorthands for writing else if.
  • Support for strong tags in the html() 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

31 Jan 14:31
Compare
Choose a tag to compare

Improvements

Tables

  • tables now preserve both left and right borders when hiding a column.
  • restore table bottom border when last row is hidden

Stencil service

  • error handling on env variables in dockerized stencil service.

v0.2.7 - small improvements

29 Jan 08:51
Compare
Choose a tag to compare
  • added join() string function

v0.2.6 - small fixes

17 Dec 14:49
Compare
Choose a tag to compare

Bugfixes

  • Downgraded required minimum Clojure version to 1.8.0
  • Fixed .cleanup() method in PreparedTemplate 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.

v0.2.5 - dynamic html and images

07 Dec 16:14
Compare
Choose a tag to compare

Improvements

  • it is possible to embed dynamic HTML content for simple formatting #10 #13 with the new html() function

Bugfixes

  • fix bug with clojure api with :overwrite? key.