문제

I had to use the static datasource for Bower packages because Nanoc (filesystem_unified datasource) does not allow multiple files with same filename and different extension.

But the static datasource treats each item as binary and does not allow me to apply filters, so I can not apply a filter for .coffee files in order to compile to .js

Any suggestions?

도움이 되었습니까?

해결책

It lets you apply filters, but not text filters, since all static data source items are "binary".

Nanoc 4 is fixing a whole mess of things like this, but you probably need a fix sooner than that :)

The easiest fix for you would be to drop a copy of the static data source in your lib directory, change the name/class to be something unique, switch the item type to text, and use that version instead.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top