Skip to content

Stop Grunt template processing for a file #53

@evil-shrike

Description

@evil-shrike

I have a markdown page with a fenced code block which contains Grunt's template syntax (<%=)

bla-bla-bla
\``` 
            test: {
                options: {              
	                urls: ['http://127.0.0.1:<%= connect.test.options.port %>/tests-runner.html']
                }
            }
\```

Building of this page fails somewhere inside Grunt. In grunt.config actually. As it detects its template syntax and try to evaluate it.
It's template syntax but it's documentation not code.

All this happens before md processing and HB-helpers evaluating - I can see raw markdown content in debugger.
Stacktrack:
grunt.config
processContext, assemle.js#613
build, assemle.js#556
assemble.js#397

Is it possible to avoid Grunt's template processing against file content?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions