Skip to content
This repository

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

Closed
bminer opened this Issue · 2 comments

1 participant

Blake Miner
Blake Miner
Owner
bminer commented

try, catch blocks get messed up here.

Blake Miner
Owner
bminer commented

Example:

block a
replace block a
    include "foo.blade"

does not compile

Blake Miner bminer closed this
Blake Miner bminer reopened this
Blake Miner
Owner
bminer commented

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.

Blake Miner bminer closed this issue from a commit
Blake Miner 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
Blake Miner bminer closed this in c9a8f92
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.