Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make includes works with filters #678

Closed
kizu opened this Issue · 4 comments

4 participants

@kizu

The goal I want to achieve is to add ability to include the contents of the different files while filtering them through any filter available in Jade.

What I propose is to treat some extensions as filters, so if you'd do include foo.md or include foo.markdown the contents of this file would be included as if it was filtered through :markdown, if you'd include bar.coffee it would be filtered through coffee-script etc.

I think that such feature would be really convenient and useful, and it must be really easy to implement I hope.

@tj
Owner
tj commented

i think we had a request like this but im definitely +1

@slang800

duplicate of #283

@kaven276
:markdown
  include file.ext

will treat "include file.ext" as markdown filter's feed, so include is just plain text for markdown filter, so we may design this usage like below

:markdown include file.ext

so jade can treat include after :filter in the same line as real include.

@kizu

That was partly done in #283, and there is also #853, so closing this issue.

@kizu kizu closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.