Skip to content
#

template-engine

Here are 1,259 public repositories matching this topic...

runyan
runyan commented Dec 22, 2017

Environment

  • blade: 2.0.5-RELEASE
  • jdk: 1.8.0_111
  • maven: 3.3.9
  • OS: Windows 7 Home Basic

Description

When I tried to upload a file, an java.lang.UnsupportedOperationException: direct buffer raised, so that the upload operation cannot be done. The full exception stack is as follows:

java.lang.UnsupportedOperationException: direct buffer
	at io.netty.buffer.Po
nabijaczleweli
nabijaczleweli commented Jul 8, 2020

Tested on 5dc12afc4e0e506183898fc56d3bdc9ce6a0b6d7 (current HEAD) and 1.3.1 off Crates.io.

Given the following setup:

{# parent #}
{% block henlo %}
henlo
{% endblock %}

{# macro #}
{% macro benlo() %}
trenlo
{% endmacro benlo %}

{# child #}
{% extends "parent" %}
{% import "macro" as macros %}

{% block henlo %}
{{ super() }}
menlo
{{ macros::benlo() }}
{% endbloc
andycnguyen
andycnguyen commented Jun 22, 2021

Describe the bug

Calling .length on string data in a template throws HandlebarsUndefinedBindingException (or returns an empty string).

Expected behavior:

Calling .length on string data outputs the length of that string, as it does in HandlebarsJS.

Test to reproduce

[Fact]
public void StringLength()
{
    var handlebars = Handlebars.Create();
    var rende

Improve this page

Add a description, image, and links to the template-engine topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the template-engine topic, visit your repo's landing page and select "manage topics."

Learn more