StubbleOrg / Stubble

Trimmed down {{mustache}} templates in .NET
Other
399 stars 58 forks source link

Not compatible with .Net standard 2.1 and .Net Core 3.1 #119

Closed pratik-cognologix closed 2 years ago

pratik-cognologix commented 2 years ago

Getting this issue with .Net Standard 2.1 and .Net Core 3.1

Could not load file or assembly 'Stubble.Core, Version=1.9.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.","exception":"System.IO.FileNotFoundException: Could not load file or assembly 'Stubble.Core, Version=1.9.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.\r\nFile name: 'Stubble.Core, Version=1.9.0.0, Culture=neutral, PublicKeyToken=null'\r\n

sjd2021 commented 2 years ago

@pratik-cognologix @Romanx Do you have any idea what we should be doing for those of us on .NET Core 3.1 - NET 6? Mustache support seems to be very much alive, but there are no recently available nuget packages that I can find for it, so I'm leaning towards liquid templates because there are libraries like fluid which support this. Is mustache actually dying out? I prefer it to liquid because the templates have less code in them and are easier to build HTML WYSIWYG around IMO.

pratik-cognologix commented 2 years ago

@sjd2021 Thank you for suggesting me another good template engine was looking for long time that is alive today :) Actually my concern is the same, is mustache dying out, no recent updates and nuget packages available. Closing this thread.

Thank you @sjd2021 .

Romanx commented 2 years ago

Hey there,

Stubble should work on netcore and netstandard and we'd love to fix it if it doesn't somehow and unfortunately your exception doesn't give enough information. If you have a repro I'd love to see it.

As for mustache, it as a templating language is effectively finished this is to say it won't be changing and adding features. So if it supports what you need from a templating language then it works great.

If you need what a language like liquid provides then that may be a good fit. I'd also recommend Scriban if looking at alternatives.