Giter Site home page Giter Site logo

Comments (17)

haoxins avatar haoxins commented on September 27, 2024

😒 because they are not in the same file.

so, page is not defined.

from gulp-file-include.

thetutlage avatar thetutlage commented on September 27, 2024

If i am passing something to the include , that should to be passed to the include file , isn't it ?

from gulp-file-include.

TrySound avatar TrySound commented on September 27, 2024

@coderhaoxin Meta templater fix this:-)

from gulp-file-include.

thetutlage avatar thetutlage commented on September 27, 2024

@TrySound What is Meta templater ??

from gulp-file-include.

TrySound avatar TrySound commented on September 27, 2024

@thetutlage my parser for this syntax

from gulp-file-include.

dirkluijk avatar dirkluijk commented on September 27, 2024

Same issue over here. Seems like the variable was not passed to the included file.

from gulp-file-include.

robbinjanssen avatar robbinjanssen commented on September 27, 2024

@coderhaoxin Is there a roadmap or an estimated date for 1.0.0? :)

from gulp-file-include.

haoxins avatar haoxins commented on September 27, 2024

before April 😒

from gulp-file-include.

robbinjanssen avatar robbinjanssen commented on September 27, 2024

@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.

bewards avatar bewards commented on September 27, 2024

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.

svkarpovich avatar svkarpovich commented on September 27, 2024

@@if works correctly if add next code at line 152

text = parseConditionalIncludes(text, variables);

from gulp-file-include.

vladsargu avatar vladsargu commented on September 27, 2024

@svkarpovich, that line is already there, but that doesn't change anything, or you meant something else?

from gulp-file-include.

svkarpovich avatar svkarpovich commented on September 27, 2024

@sarguvlad, Currently this code on line 154. Try to duplicate this line and paste to line 152.

My file looks like this -
2015-03-23 23 35 12

from gulp-file-include.

TrySound avatar TrySound commented on September 27, 2024

Reference on #62.
This issue could be closed.

from gulp-file-include.

ShahidH avatar ShahidH commented on September 27, 2024

Is it fixed yet?

I get an error: is not defined

from gulp-file-include.

minlare avatar minlare commented on September 27, 2024

@ShahidH - see #84

You need to check the variable on context object as follows:

@@if (context.myVar) {
  @@myVar
}

from gulp-file-include.

shakercs avatar shakercs commented on September 27, 2024

{
"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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.