-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't generate docs on Linux or OSX #188
Comments
Thanks! Do you have any suggestions for existing cross-platform open-source templating engines that we could use instead of Razor? If we can start by putting together a list of options, that would be great. |
Some input: DotLiquid works on mono just fine. I'm also eager to get this project working. |
Also have a look at what Nancy is using, e.g. the markdown engine: https://github.com/NancyFx/Nancy/tree/master/src/Nancy.ViewEngines.Markdown |
Here's another https://code.google.com/p/nhaml/ |
If I were to choose, I'd spike both DotLiquid and Markdown and then choose one of them, |
I played about with nhaml, I think it kind of fits F# quite nice.
|
As far as I can tell, NHaml has not been updated in over a year, so DotLiquid sounds like a better choice - if we can put together a PR that replaces RazorEngine with DotLiquid, then I'd be more than happy to merge it! The only tricky thing in the templates is done here: https://github.com/tpetricek/FSharp.Formatting/blob/master/misc/templates/reference/module.cshtml#L19 I suppose we won't be able to do it in the same way. But we can change the MatadataFormat library, so that it exploses the members as already grouped (and then we don't have to do ad-hoc grouping in the template). |
I would vote for fixing/improving RazorEngine (see #202, for a hack to make it work) because:
Note that I have included 22e78ef to improve the error messages, this should make it a lot easier to fix any remaining problems for now. If there are still problems (with the mentioned hack) I could try to give some pointers in how to solve them as I have a working setup on linux/mono. |
OK - so I'll finally have some time to get back to this!
|
I can only speak for RazorEngine: I basically have the pull request ready to update RazorEngine within FSharp.Formatting (very few changes to improve mono support), but of course the new version is not released jet. In fact we already use this updated version within RazorEngine to make it work on mono. Razor templates would make FSharp.Formatting a lot more extendible for users imho (as they can write real code within the templates). PS: To take advantage of Razor4 and Roslyn you need to update to net45 (both are still beta right now). |
@matthid Thanks for the reply - do you have any timeline for the 3.5.0 release? Overall, you did a lot of work to make F# Formatting work well with RazorEngine and if we can make it work with NuGet package on Mono, then I'd say we have all we need. So I'd be happy to keep using RazorEngine (thanks for the hard work on making this better!) I'm still open to supporting DotLiquid, but (if someone wants to do that), it might make more sense to have it as an additional option. |
Sadly I have no timeline, however I hope to get a beta nuget package out pretty soon (that would help right?). |
Hello all! It's nice to see interest in using DotLiquid for such a cool project :) Unfortunately I don't currently have time to work on that integration myself, but I'm happy to be "around" to answer any questions that arise if somebody does work on that. Looking at the existing templates, it looks like most of them would be fairly straightforward to port to DotLiquid. Where it isn't possible, Drop classes can help by moving any complex logic to C#. For the purposes of open-ness, I should mention that I'm stepping back a little from the DotLiquid project. But it's already stable, works well (in my opinion!), and there are several contributors who are going to help move it forwards. |
@matthid also relevant: SuaveIO/suave#141 -- or we can go down the same route with dotliquid. |
@haf I think the main problem with RazorEngine is lacking documentation not missing features (I tried to improve that a bit in the mean time). |
Well done! |
Yay! Great work @matthid! |
This is a continuation of Issue #65 from the scaffolding project.
@tpetricek suggested to bring the issue over here.
The text was updated successfully, but these errors were encountered: