StubbleOrg / Stubble

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

Add asynchronous loading to IStubbleLoader #15

Closed Romanx closed 7 years ago

Romanx commented 7 years ago

It's certainly possible that people will want to store templates on the file system or in a database and so loading interfaces could be blocking.

We should add an async method to the IStubbleRenderer which calls an AsyncLoad method of IStubbleBuilder. For efficiency (since the majority of the calls should be non-blocking) the async interface should implement ValueTask