Skip to content

Releases: casid/jte

1.5.2

09 Feb 04:30
Compare
Choose a tag to compare
  • #50 fix parsing of attributes without parameters
  • Add automatic module names
  • Use latest version of org.owasp.encoder (1.2.3)

1.5.1

06 Feb 07:32
Compare
Choose a tag to compare
  • #47 add setting htmlCommentsPreserved to preserve comments with ContentType.Html.
  • #46 do not fail build for empty HTML attributes, even if they are not boolean.
  • #39 fix error message for wrong param with precompiled classes.

1.5.0

13 Dec 16:19
Compare
Choose a tag to compare
  • #25 Fix compilation with too long constant strings.
  • Small performance optimization: Use forHtmlContent to escape HTML tag body contents, since we know that we are not within an HTML attribute.
  • #34 Allow to pass compiler arguments to template compiler.
  • Add first draft of hot reload for precompiled template engines.
  • #35 allow to configure parent class loader for jte templates.
  • Remove experimental feature null safe template mode.

1.4.0

30 Oct 06:48
Compare
Choose a tag to compare
  • HTML attributes with a single output that evaluates to an empty string, null, or false, are not rendered. For instance, <span data-title="${null}">Info</span>, will result in <span>Info</span>. The existing feature for HTML boolean attributes is unaffected by this, e.g. <input required="${true}" still renders as <input required> and <input required="${false}"> results in <input>.
  • Content block output in html attributes is escaped. For instance, <span data-title="@`This is "the way"!`">Info</span> will be rendered as <span data-title="This is &#34;the way&#34;!">Info</span> (See these unit tests for detailled examples)
  • #22 HTML, CSS and js comments are omitted with ContentType.Html
  • Experimental utility to concat CSS classes, located in gg.jte.html.support.HtmlSupport
  • Allow composition of different HTML policies.
  • Optional HTML policy that forbids single quoted HTML attributes. (gg.jte.html.policy.PreventSingleQuotedAttributes)
  • #20 Optional HTML policy to forbid inline event handlers (gg.jte.html.policy.PreventInlineEventHandlers)
  • #10 improve trimming of control structures, it now also works with ContentType.Html
  • Fix import statement in css file being misinterpreted as jte import.
  • Compilation error if parameters are passed to a tag without parameters.
  • #24 Better error message for param declared without name
  • #15 Allow ClassLoader to be provided to ResourceCodeResolver
  • Map of parameter name, parameter class can be obtained for each jte template. (gg.jte.TemplateEngine#getParamInfo)

Maven plugin

  • #10 trimControlStructures can be enabled
  • Custom HTML policy can be defined in CompilerMojo, with htmlPolicyClass.

1.3.0

19 Sep 16:05
Compare
Choose a tag to compare
  • #11 Suppress imports after output was already written
  • Fix ommitted comment if it's the first control structure after parameters
  • #10 Initial insert of experimental feature trimControlStructures (please don't use in production yet!)
  • Added gg.jte.WriterOutput
  • Improved error message if template is called with wrong parameter
  • Wrap arguments passed to Content parameters of templates if the passed type is not gg.jte.Content, in order to allow incremental migration to jte

1.2.0

19 Sep 15:19
Compare
Choose a tag to compare
  • Add maven plugin mojo that only generates template file sources and leaves compilation to the maven compiler.
  • #9 - Fix filenames with multiple dots lead to compile failure
  • Fix comment converstion after jsp params casid 13.09.20, 21:56