ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.
MIT License
241 stars 44 forks source link

Fix for once generator running even if not found #53

Closed sasmithjr closed 4 years ago

sasmithjr commented 4 years ago

I did a fornax new and discovered that the contact.html file was matching the about.html file when modified. I noticed that config.fsx looks for contact.fsx but the generator was in file contanct.fsx.

First commit changes contanct.fsx to contact.fsx to correcty match what's specified in config.fsx. Second commit checks for errors in GeneratorEvaluator.getGeneratorContent even if funType returns a success. I noticed that the contact generator was correctly giving load and open errors, but the function was still return an Ok result. My guess would be that the about generator was already loaded in to the fsi environment, so a generate function from About was available even though contact was not successfully loaded.

Krzysztof-Cieslak commented 4 years ago

Awesome, thanks ❤️

Krzysztof-Cieslak commented 4 years ago

Released in 0.11.1

sasmithjr commented 4 years ago

Thank you!