Skip to content
#

handlebars

Here are 2,544 public repositories matching this topic...

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
digitalsanctum
digitalsanctum commented Mar 14, 2021

I'd like to be able to use ramhorns with arbitrary data supplied via JSON. From what I can tell, serde_json::Value fits the requirement for doing this but ramhorns uses a derive trait which won't work with serde_json::Value because it's an enum.

Is there a workaround or an easier way to accomplish using arbitrary data with ramhorns that doesn't require using the ramhorns::Content trait?

Improve this page

Add a description, image, and links to the handlebars 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 handlebars topic, visit your repo's landing page and select "manage topics."

Learn more