On Dec 14, 12:51 pm, Denis Defreyne <
denis.defre...@stoneship.org>
wrote:
> On 14 Dec 2009, at 18:47, Eric Sunshine wrote:
> > This :extension attribute seems to exist only in nanoc 2.x, but is
> > absent (unfortunately, perhaps) from nanoc 3.x.
> Ah, yikes… you’re right. It’s not present in nanoc 3.0.x, but it will be there in nanoc 3.1.x.
In the meantime, Satheesh Babu Vattekkat, you can take a hint from the
nanoc's own website sources. In each asset's .yaml file, indicate the
type of filtering which should be applied to that asset. If you look
at the .yaml file of nanoc's news items, for instance, you will see
"markdown: true" (or false), and the compile rule looks something
like:
compile '*' do
filter :maruku if item[:markdown]
...
end
Even better, the .yaml file could specify which filter to apply. For
instance "filter: maruku" or "filter: erb".
compile '*' do
filter item[:filter].intern
...
end
Even more general would be to allow a list of filters to be specifies
in the .yaml file. For instance "filters: [erb, maruku]".
-- ES