Comments (6)
I believe you can use the data-skip attribute, it's looking for a boolean value.
data-skip={{property}}
from soma-template.
unless you want to do
if something
< p />
else
< img />
fi
from soma-template.
I often find myself wanting to use evaluated expressions, e.g.,:
data-show="{{property > 5}}"
Would that help in your case?
Edit: Not implemented, dev item suggestion.
from soma-template.
not really, unless we can do an evaluated if/else like this:
{{if(something) { }}
< p />
{{ } else { }}
< img />
{{ } }}
from soma-template.
Hi @stephane-tessier
There is no such a functionality as for today.
A previous discussion:
https://groups.google.com/forum/#!topic/somajs/BQ0kYfJOkhQ
I have no plan of adding any, mainly because of time.
Romu
from soma-template.
Ok, thanks for your time.
from soma-template.
Related Issues (20)
- Parse functions in parameters HOT 1
- data-repeat undefined parameter HOT 1
- Setting value should use the content attribute HOT 3
- angular like "filters" in data-repeat HOT 2
- Update Typescript definition HOT 1
- demos/people doesn't work under Firefox HOT 1
- Can't pass arguments to helper function nor perform arithmetic operations. HOT 2
- missing license and copyright HOT 2
- data-click type events not working on iOS
- 2 questions HOT 2
- Possible confusion involving template re-compilation HOT 2
- Run-time compiled templates not initialising nested templates HOT 1
- Template constructor, named variables not honored HOT 1
- soma-template swallowing errors in services, templates HOT 2
- data-repeat incorrectly rendering when initially blank, then subsequently rendered with items HOT 1
- Late instantiation of templates doesn't work as expected
- data-skip attributes from scoped variables (Tokens) HOT 2
- Make the docs more clear about the use of npm install HOT 2
- data-enabled attribute
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 soma-template.