Statiq.Web
Statiq.Web copied to clipboard
Strict run and add document metadata in runtime
Hi @daveaglick,
First of all, thanks for the cool engine for static sites. Playing with it for a while and it looks very promising. Could you please guide me in the following questions:
- I've enabled Strict mode for the bootstrapper:
Bootstrapper.Factory.CreateWeb(args)
.AddSetting(WebKeys.Strict, true)
and according to the documentation I expected that Statiq will throw an exception in runtime or at least stop/exit when some error occurred but it didn't. By the error, I mean smth like an invalid LESS file content (thrown by dotless), etc. but Statiq just logged the error in the control when started and that's all. Q: How to terminate Statiq with a not-0 exit error code when something has failed on start?
- Is it possible to add custom metadata to a document in run-time (in the pipeline code, etc)? I see that the document inherits IMetadata which is read-only. My goal is to add the metadata in one of my pipelines and process it in another.
Thanks.