I know commands work as strings.

I *think* if you import filters, then filters.typogrify (without quotes)
works too, like other callables.

The one I am not sure about is using python callables as strings :-)

On Tue, Apr 28, 2020 at 5:49 AM Mathieu Dugue <dugue.math...@gmail.com>
wrote:

> It is actually the doc that is right ! The default conf.py misses the " ".
> I tried and it throws an error otherwise, but with the " " it works
> smoothly, its nice for the jpeg and png !
>
> Le lundi 27 avril 2020 22:04:31 UTC+2, Mathieu Dugue a écrit :
>>
>> In the doc the filters example are given as strings, between " " :
>>
>> FILTERS = {
>>   ".css": ["filters.yui_compressor"],
>>   ".js": ["filters.yui_compressor"],
>> }
>>
>> But in the conf.py the filters example are given like this :
>>
>> FILTERS = {
>>    ".html": [filters.typogrify],
>>    ".js": [filters.closure_compiler],
>>    ".jpg": ["jpegoptim --strip-all -m75 -v %s"],
>> }
>>
>> Does the doc needs an update ?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "nikola-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nikola-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nikola-discuss/ed00b2a2-b5a4-42b9-857f-75c2eb9a10bd%40googlegroups.com
> <https://groups.google.com/d/msgid/nikola-discuss/ed00b2a2-b5a4-42b9-857f-75c2eb9a10bd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nikola-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/CALXDAfqtQsfScjjhk0zxAgTa4d2VfrQLcqthZucLfF1dCToq8Q%40mail.gmail.com.

Reply via email to