rnielikki / Pagene

Static Blog Post File Generator, with tag support
https://rnielikki.github.io/Pagene
0 stars 0 forks source link

Builder syntax to the converter #3

Open rnielikki opened 4 years ago

rnielikki commented 4 years ago

Currently the pattern is simply like this:

(new Converter()).ConvertAsync()

The plan is editing the syntax into:

(new Converter()).AddConfig("appsettings.json").AddFiles().AddStaticPages().BuildAsync()

Second plan is changing tags / recent pages like this.

(new Converter()).AddConfig("appsettings.json").AddContentServices(/* ContentManager like TagManager or RecentPageManager */).AddContentServices(/* IEnumerable<ContentManager> */).BuildAsync()

The settings file will be affected and more complicated to edit, as well as the priority of this feature is low (this can be started when the first feature is done, at least).

rnielikki commented 4 years ago

Opened branch for this.

rnielikki commented 3 years ago

This will be postponed until the editor is changed - because it can cause API usage change. But maybe 2.0