by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Teck Loy Low
@Takaloy
ah nevermind, figured it out. thanks!
Jelle Criel
@SnelleJelle
Hi, i'm trying out the engine and I'm having trouble using a class in my template
I can get the sample with the Anonymous Types running just fine
But I can't seem to use a List<Person> without having an exception blast in my face..
Can anyone help me out please? this is my simplified code
Teck Loy Low
@Takaloy
Hi @SnelleJelle , the example you gave doesn't seem to have a list involved
Kilian
@Schtailian
Hi, RazorEngine saves a lot of files in C:\Windows\Temp in different folders there. It deletes them when i rebuild the project but otherwise they stay there. That means we run out of memory on our production project. Shouldn't RazorEngine clean up those folders/files?
Matthias Dittrich
@matthid
Hi @Schtailian, did you take a look at http://antaris.github.io/RazorEngine/#Temporary-files and the linked issue?
Kilian
@Schtailian
Yes had a look now. We are still using Razor.Parse() so working with a template key is not an option currently. Is there a way to change the caching location? So i would move it to a location where i do not need admin rights and delete them regularly.
Brenton
@brentonlamar
Hey guys, can anyone enlighten me as to why Travis-ci is failing for pull request 400? when I run build.cmd locally, everything builds successfully.
Matthias Dittrich
@matthid
@brentonlamar No worries, it looks like a mono bug (runtime crash). As long as one of the two mono builds is green everything should be fine.
Dinesh Yelchuri
@vyelchuri
Hey guys, Can some one help me with this issue Antaris/RazorEngine#434
Dinesh Yelchuri
@vyelchuri
Hey guys, Can some one help me with this issue Antaris/RazorEngine#434
Poorya
@courosh12
Hey guys, i saw on the github page that this project is in need of new maintainers. I would like to volunteer. But i have no idea where to start, this is my first open source project. If there is anyone there who could guide me. I would appreciate that. Cheers.
Matthias Dittrich
@matthid
@courosh12 Thanks for your interest. Usually (from my experience at least) it goes like this:
  • earning some trust by fixing bugs, showing interest in the project - for example by helping users improving docs or implementing new features.
  • After a sustained amount of time people usually give you more and more rights, for example to merge and review other peoples work followed by doing releases on your own
Poorya
@courosh12
@matthid Thanx for you reply. Do you also have guidelines for the code , testing etc. Like i said i am not very experienced in this area and my qualite of code or tests may not be what is expected here.
Alok Sharma
@aloksharma1
does razor engine now supports @Url/Html or other helpers
i am also trying to get session values inside my razor code[more important then helpers]
any idea how i inject those?
Alok Sharma
@aloksharma1
@Antaris thank you for building such a beautiful tool
Keith Andrew Hill
@vic10us
I don't think so. I was hoping that c# 6.0 would be supported as well. So I could share existing MVC views with RazorEngine
Alok Sharma
@aloksharma1
well thats a disappointment , i have to write my own string parser in conjuction with razorengine in this case
i hope this wont make too much overhead
so coming to my next question
i have seen in examples how to purge all compiled dll cache
any way to remove only a single one
because only a few templates will ever change in my case
so purging all the cache will be a bit overkill
Keith Andrew Hill
@vic10us
You should implement a custom cache policy
cmellongoempyrean
@cmellongoempyrean
@vic10us if you use the Roslyn packages you can get C#6 support
Keith Andrew Hill
@vic10us
Really? I'll have to check them out.
cmellongoempyrean
@cmellongoempyrean
Keith Andrew Hill
@vic10us
Is it only for .net core?
Chris Briggs
@ChrisBriggsy
Hi All, Having the same issue as Antaris/RazorEngine#456 when trying to use RazorEngine in Azure functions, any ideas of how to fix it?
kchyn-bay
@kchyn-bay
Hi all, anyone has issue with template caching every time an application starts? When Engine.Razor.IsTemplateCached returns false, we tried to compile again using Engine.Razor.Compile, and then checks again whether the template is cached, but it still returns false. So when Engine.Razor.RunCompile is executed at the end, KeyNotFoundException is thrown.
This only happens on the first email template compiling/caching after application starts, all subsequent calls are fine but is still nuisance to usability
We also tried System.Threading.Thread.Sleep(1000) to give time for the template to be cached but that didn't help.
danwalmsley
@danwalmsley
hello, I'm trying to use this in a netcore2 app, has anyone tried this yet?
I just get unable to find assembly system.configuration 4.0.0.0
Shane Chambers
@DeadlyChambers
I am picking this up tonight. My name is Shane, have 7 years of dotnet experience. Currently need something in dotnetcore that will allow me to output html from a library instead of a mvc project. Looks like there has been much chatter on here.
qamaruddin
@qamaruddin
Hi, I am trying to use razorengine for a vb.net class library project. Unfortunately I keep receiving type '' not defined error while invoking "runcompile"
Any idea why is this occuring.
Its not even resolving the types that are part of the assembly
eddyjl077
@eddyjl077
Will this be available for NETCORE 2.0?
Shyamal Parikh
@shyamal890
@ChrisBriggsy Were you able to make RazorEngine work in Azure Functions?
Alok Sharma
@aloksharma1
can we use netcore 2.0 with vs 2015
Mark Tkachenko
@Rizzen
Hello! Will it be ported to .NET Standart?