Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

We are a little confused about pre-compiling a template. for example: Is it possible to store the template variable in say a database and then just retrieve it and call string source = @"<div ...
user2981411's user avatar
0 votes
2 answers
122 views

Simple example public class TemplateData { public string inputstring = "あ"; } public static string HandleBar() { var message = "{...
Worthy7's user avatar
  • 1,611
0 votes
1 answer
58 views

I am trying to print a tag depending on the language and the date type, so when it DateAndTime the tag should be "Delivery date and time:" and when the type is Date it should be "...
dimalc's user avatar
  • 23
0 votes
1 answer
245 views

I try to make a custom class with the scaffold command. This is my model of custom class Class.hbs {{> imports}} {{using-base-class}} namespace {{namespace}} { {{#if comment}} /// <summary&...
TyDialexno's user avatar
0 votes
1 answer
1k views

I have a JArray that contains an array of objects. I am using handlebars.net to bind the data in the template. In getReportDetails variable, I am getting an array of objects in the below format: [ ...
nawaz uddin's user avatar
2 votes
1 answer
796 views

Imagine that I have a template that requests {{Foo}} but that property does not exist on the given model. Can Handlebars.Net be configured to report this problem to me? To me it looks like it just ...
default.kramer's user avatar
0 votes
1 answer
681 views

I am trying to use handlebars with C# in universal windows platform (UWP) using Handlebars.Net in this GitHub link (https://github.com/Handlebars-Net/Handlebars.Net) I used simple code used in the ...
Mahmoud Elattar's user avatar
0 votes
0 answers
474 views

Our goal To be able to use a tool that generates automatically all the models from our DB (MySQL) with Null Safety enabled (Nullable Reference Types) and that lets us modify some properties' types and ...
JSB's user avatar
  • 95
0 votes
1 answer
503 views

I have two database contexts in the same project that look different. One inherits from a different base class and has a different constructor. public partial class DbFirstGraphQLDataContext : ...
Matthew Holmes's user avatar
0 votes
3 answers
1k views

In Handlebars.Net, if there is no matching field, it just places a blank there. string source = @"My name is {{Name}} and I work at {{Job}}"; var template = Handlebars.Compile(source); var ...
L_7337's user avatar
  • 2,747
0 votes
2 answers
650 views

I'm trying to build a code generation framework using .net core and handlebars and I would need to customize how expressions are mapped to values in handlebars.net. Is it something that is possible? ...
Jazzwave06's user avatar
  • 1,871
0 votes
2 answers
2k views

I am trying to do if equals comparison on Handlebars .NET. {{#if xxx}} is working with boolean values. How can i make {{#if x = 'foo'}} comparison in Handlebars .NET ?
Cemal Çelik's user avatar
3 votes
1 answer
3k views

I try to write a Handlebar.Net helper which works like Equals. The Helper should be used like {{#eq name "Foo"}} true {{else}} false {{/eq}} But I don´t know how to implement this helper. In ...
Felix Arnold's user avatar
0 votes
1 answer
493 views

Using the IfCOnd helper as defined in this post (HandleBars .Net If Comparision) I'm experiencing an issue with the helper not detecting the first argument being passed which is the particular field/...
Matt Evans's user avatar
2 votes
1 answer
336 views

This seems to be a simple matter and maybe it's solved already, but I'm not sure how to do it. I'd like to keep arbitrary unresolved expressions for later evaluation. Note that I still don't know ...
Rubem Pechansky's user avatar
3 votes
1 answer
1k views

I'm trying to use the following template (TestTemplate) in a console application using .NET Core 2.1 and Handlebars.Net 1.9.5 <html> <head> <title>A title</title> </head&...
bluedot's user avatar
  • 782
2 votes
1 answer
428 views

In handlebars.net, I know we can access array members like {{SomeArray.0}} Is it possible to access collection items through indexers like {{SomeCollectionInstance['key']}} or {{...
Onur Okyay's user avatar
1 vote
1 answer
2k views

I have a configuration value that represents a folder where some files are available for download. This value is a handlebars template: "D:\{{identifier1}}\{{identifier2}}\SomeFolder\{{version}}" ...
Josh's user avatar
  • 16.6k
2 votes
1 answer
615 views

In handlebars.js or handlebars.net, is there a way to create an array and iterate over it in the template? I would like to do something like this: <select name="hour"> {{#each [1..24]}} &...
Bianca Ghiuruțan's user avatar
3 votes
1 answer
1k views

I have json with an array of objects which each object has its own sub array. I want to grab the values from _History sub array using the value in _Year variable I pass into Handlebars js. I can get ...
Kathy Judd's user avatar
4 votes
1 answer
2k views

I am generating a data model using swagger-codegen. The template /// <summary> /// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{description}}{{/description}} /// <...
taj's user avatar
  • 1,138
4 votes
2 answers
3k views

Does someone know how to bind Json data to HandleBar? Here is the source: https://github.com/rexm/Handlebars.Net I could check this example: string source = @"<div class=""entry""> ...
Mati Silver's user avatar
2 votes
1 answer
145 views

With current Xamarin.Forms 2.3.0.107, I am trying to process xml and json files with Handlebars.net (1.7.1) and Newtonsoft.json(9.0.1), while in Debug all works fine in Relase is json data not ...
Ondrej's user avatar
  • 507
2 votes
2 answers
3k views

How would we register these two JavaScript helpers in Handlebars.Net? For Moment.js: Handlebars.registerHelper("formatDate", function (datetime, format) { return moment(datetime).format(format); ...
Charles Okwuagwu's user avatar
1 vote
2 answers
2k views

Hi this code works perfectly fine for Handlebar.js. What should I do to display key/property through c#/HandleBars.net ? {{#each myObject}} {{#if this.length}} <b>{{@key}}</b> ...
user2449952's user avatar