Hi Matija,
nanoc automatically loads all files in lib/ before compilation (recursively and alphabetically). So, you can put Sass::Script::Functions somewhere in lib/. You’ll probably need to require 'sass' first though, because nanoc won’t actually load sass until the sass filter runs.
Hope this helps! (I haven’t actually tried this myself yet :)
Denis
On 14 Mar 2013, at 00:02, Matija Marohnić <
matija....@gmail.com> wrote:
> Excuse me for my Ruby newbieness, but how do you extend Sass with additional functions in nanoc?
>
> I know you need to have a Sass::Script::Functions module somewhere in the lib folder, but I don't know where and how to require it when nanoc starts. I know how Sass functions work, so I only need help with the integration in nanoc :)
>
> --
> --
> You received this message because you are subscribed to the nanoc discusssion group.
>
> To post to this group, send email to
na...@googlegroups.com
> To unsubscribe from this group, send email to
>
nanoc+un...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/nanoc?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "nanoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
nanoc+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>