Skip to content

Include within a `replace/append/prepend block` #27

Closed
bminer opened this Issue May 29, 2012 · 2 comments

1 participant

@bminer
Owner
bminer commented May 29, 2012

try, catch blocks get messed up here.

@bminer bminer was assigned May 29, 2012
@bminer
Owner
bminer commented May 29, 2012

Example:

block a
replace block a
    include "foo.blade"

does not compile

@bminer bminer closed this May 29, 2012
@bminer bminer reopened this May 29, 2012
@bminer
Owner
bminer commented May 29, 2012

I think the easiest thing to do right now is to leave include unsupported within functions and blocks. The compiler needs to throw an error when this happens.

There are workarounds for this. For example, you can put a function in your included file, include the file, then replace a block by calling the included function within the block.

@bminer bminer added a commit that closed this issue May 30, 2012
@bminer Compiler now throws an Error when include statements are placed insid…
…e of a function, block, or chunk (closes #27).

Push to version 1.2.4
c9a8f92
@bminer bminer closed this in c9a8f92 May 30, 2012
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.