Comments (12)
@web2style Perheps it's regexp problem.
Try this
@@if (active === 'index') {<span class="index">}
@@if (active === 'index2') {<span class="index-2">}
from gulp-file-include.
+1
from gulp-file-include.
@web2style You can use negative condition for it.
from gulp-file-include.
@TrySound Could you please provide an example? I tried
class="@@if (active === 'index') {index} @@if (active !== 'index') {inner}"
but it also throws an exception.
from gulp-file-include.
@web2style Which exception it throws?
from gulp-file-include.
throw er; // Unhandled 'error' event
^
Error: Unexpected token {
from gulp-file-include.
@web2style Looks like javascript syntax error. Check your code.
from gulp-file-include.
@TrySound But it disappears when I change this line to class="@@if (active === 'index') {index}
from gulp-file-include.
@TrySound It works like this, but I can't use it for class declaration, because an element can't have 2 classes.
@coderhaoxin So this looks like a bug.
from gulp-file-include.
@web2style At next friday we will start to discuss integrating of my meta-templater as an engine. It parses without regular expression, so will be more stable.
from gulp-file-include.
@web2style You can try this. And ask questions in gitter room
from gulp-file-include.
0.12.0
from gulp-file-include.
Related Issues (20)
- Postfix
- 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
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.