StubbleOrg / Stubble

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

Add Cake plugin #37

Closed gtbuchanan closed 1 year ago

gtbuchanan commented 5 years ago

It would be great to easily use Mustache in Cake scripts. I propose creating a Cake.Stubble plugin with some signatures like:

string MustacheRender(string template, object viewModel);

string MustacheRender(string template, object viewModel, Action<RendererSettingsBuilder> configurator);

string MustacheRenderFile(FilePath templateFile, object viewModel);

string MustacheRenderFile(FilePath templateFile, object viewModel, Action<RendererSettingsBuilder> configurator);

The Cake team discussed adding templating support to Cake at one point, but I think it fell through.

Romanx commented 5 years ago

Hi there,

I'd actually thought about doing this recently since i've actually written a Cake plugin already Cake.Coverlet.

I'll add the enhancement tag to this but I will likely open another repository if I do this.

Thanks,

gtbuchanan commented 1 year ago

I've moved from Cake to Nuke so this is no longer of interest to me.