lumeland / lume.land

The website of lume.land
https://lume.land
MIT License
73 stars 68 forks source link

A sample of adding a filter into Vento #138

Closed dogfuntom closed 1 month ago

dogfuntom commented 1 month ago
site.hooks.vento((vento: Environment) => {
  Object.assign(vento.filters, { withoutAll })
})

It seems to work in my case. But I'm not certain about:

oscarotero commented 1 month ago

There's the site.filter() function to add filters to all template engines installed.

site.filter("withoutAll", withoutAll);

More info: https://lume.land/docs/configuration/filters/#filters

dogfuntom commented 1 month ago

Oh, ok, not sure how I missed that… Sorry for redundant issue then.