Comments (17)
π’ because they are not in the same file.
so, page
is not defined.
from gulp-file-include.
If i am passing something to the include , that should to be passed to the include file , isn't it ?
from gulp-file-include.
@coderhaoxin Meta templater fix this:-)
from gulp-file-include.
@TrySound What is Meta templater ??
from gulp-file-include.
@thetutlage my parser for this syntax
from gulp-file-include.
Same issue over here. Seems like the variable was not passed to the included file.
from gulp-file-include.
@coderhaoxin Is there a roadmap or an estimated date for 1.0.0? :)
from gulp-file-include.
before April π’
from gulp-file-include.
@coderhaoxin thanks, I can live with that, great work you're doing here! Might look at some alternatives in the meantime. Primarily use it to (conditionally) merge markdown files.
from gulp-file-include.
I would love to see this in action soon as well. If you declare the variable in the context option, it works, but there's definitely a need to have that variable page based.
from gulp-file-include.
@@if works correctly if add next code at line 152
text = parseConditionalIncludes(text, variables);
from gulp-file-include.
@svkarpovich, that line is already there, but that doesn't change anything, or you meant something else?
from gulp-file-include.
@sarguvlad, Currently this code on line 154. Try to duplicate this line and paste to line 152.
from gulp-file-include.
Reference on #62.
This issue could be closed.
from gulp-file-include.
Is it fixed yet?
I get an error: is not defined
from gulp-file-include.
You need to check the variable on context
object as follows:
@@if (context.myVar) {
@@myVar
}
from gulp-file-include.
{
"stackedCards": {
"image": "/images/section2.svg",
"orderNum": "54674567" }},
@@if (context.stackedCards.image) {
//test
}
Cannot read property 'image' of undefined: (context.stackedCards.image)
not working with me
from gulp-file-include.
Related Issues (20)
- Support recursive include? HOT 1
- Multiline in variable and json error HOT 1
- Can I use different styles for different source filesοΌ
- More error info
- How to loop array of objects if it is inside array of objects in the same JSON file?
- could i config custom `@@webRoot` or add `@@urlRoot` ? HOT 6
- Filters documentation
- Is not difined in IF statement HOT 2
- Question: Extension support in vscode
- Include with part of the JSON HOT 1
- nested for loop, inner variable is not defined HOT 1
- Can html page files be generated in batches? HOT 1
- @@webRoot documentation HOT 4
- Invalid character error HOT 1
- Build only the files that will be changed
- Detect which file have an error
- Fix : invalid characters in JSON5 HOT 2
- json not work in loop HOT 1
- Pass variables to child include
- Support for little advanced templating on for loop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-file-include.