These are chat archives for Antaris/RazorEngine

31st
May 2015
Matthias Dittrich
@matthid
May 31 2015 13:34
@ABergBN Sorry I cannot find that mail, can you tell me to which address you sent it or try to send it again?
Matthias Dittrich
@matthid
May 31 2015 14:04
nevermind, found it :)
I briefly looked at it: The problem is that the cshtml file is not saved with proper UTF8 encoding. So either save it via UTF8 or load it with the proper encoding.
ABerg
@ABergBN
May 31 2015 14:56
Thanks! I loaded it with UTF8 Encoding in my ITemplateManager, but now I changed the encoding in my cshtml file and now everything works fine, thanks!
seriouz
@seriouz
May 31 2015 20:45
Hey i want to use RazerEngine for templating hundreds of html elements like inputs, dropdowns, checkboxes etc... Is a custom implementation of the ICachingProvider the best way to go?
Matthias Dittrich
@matthid
May 31 2015 20:50
It doesn't really depend on the size of the templates, but more on your (performance, memory) requirements and the number of your templates...
seriouz
@seriouz
May 31 2015 20:52
there will be 20 template files (one foreach html-element) performance and memory is high (azure cloud hosted)
Matthias Dittrich
@matthid
May 31 2015 21:15
I would recommend the default settings and use your own when you run into problems
seriouz
@seriouz
May 31 2015 21:18
Easy use of:
string result = Engine.Razor.RunCompile(template, "input", typeof(Input), inputEl);
string result = Engine.Razor.RunCompile(template, "input", typeof(Input), inputEl2);
string result = Engine.Razor.RunCompile(template, "select", typeof(Select), selectEl);
Is the Engine.Razor. threadsafe? In my enviroment it is possible, that *Engine.Razor.RunCompile(template, "input", typeof(Input), inputEl) is called at the same time.
Matthias Dittrich
@matthid
May 31 2015 21:23
Basically "yes", we always create a new template instance for every "Run"
If you run into any issue open one on github
seriouz
@seriouz
May 31 2015 21:23
Okay :) I'll test is the next days (Mass compile ;>)
*it
Any idea if its possible to join this chat via IRC or similiar?
such wow... so style ... wow => https://irc.gitter.im/
Matthias Dittrich
@matthid
May 31 2015 21:32
yeah gitter is nice :D I love all the integrations they provide :)
seriouz
@seriouz
May 31 2015 21:41
hi from irc
Matthias Dittrich
@matthid
May 31 2015 21:44
it seems to work! I gotta go now. Report back if your testing works ;)
seriouz
@seriouz
May 31 2015 21:44
I#LL do! good night!