Prepending Code To Templates #3

Merged
merged 3 commits into from Apr 27, 2015

3 participants

@LoonyPandora

Add support for prepending of code, like recent versions of Mojo::Template

Since this module is inspired by Mojo::Template, I thought it would be worthwhile to 'backport' some features from it. I find the prepend option very useful in Mojo::Template. It's a small change, and I feel adds a lot to the module.

LoonyPandora added some commits May 17, 2011
@LoonyPandora LoonyPandora Add support for prepending of code, like recent versions of Mojo::Tem…
…plate

Since this module is inspired by Mojo::Template, I thought it would be worthwhile to 'backport' some features from it. I find the prepend option very useful in Mojo::Template. It's a small change, and I feel adds a lot to the module.
d00f284
@LoonyPandora LoonyPandora Tests for new Prepend Feature.
Also clean up tests that now break because they rely on a specific number of lines in a template.
b7f41ea
@LoonyPandora

Sorry about doing this twice - I wanted to add tests for the feature, and mistakenly closed the previous pull request.

@gfx

Hi,

Thanks for the new feature, but you should add an explanation for it. Otherwise no one can employ it!

@LoonyPandora

I added a bit in the POD. There are a few other items that aren't documented.

I'll go through all options and add a bit more documentation with examples if that's alright?. I think it's best to do that work in a separate pull request though.

@kazuho kazuho merged commit 4a287b3 into kazuho:master Apr 27, 2015
@kazuho
Owner

Sorry for not responding. Made some tweaks, merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment