Automattic / juice

Juice inlines CSS stylesheets into your HTML source.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for codeBlocks in command line

mnorton-unity opened this issue · comments

I'm trying to setup Juice as part of a build process and I need to be able to specify codeBlocks for FreeMarker in order to get the templates to be parsed properly. Is there a way to do this that I'm missing, or would this require additional functionality?

I think you might want to use options-file as an arg from CLI since no, you can't do codeblocks directly on CLI, but it should parse out from options-file

@jrit I tried placing it inside options-file and it doesn't seem to work:

"codeBlocks": {
        "freeMarkerStart": {
            "start": "<#",
            "end": ">"
        },
        "freeMarkerEnd": {
            "start": "</#",
            "end": ">"
        }
    }

With this in place, it does inline the HTML inside the blocks, but it messes up the blocks themselves, turning <#items as reqActionItem> into <#items as="" reqactionitem="">, etc.

Might be related to #257?

I've added a PR to properly support codeBlocks within an options-file. #327