Comments (3)
@jamesarosen Interesting use case. We should try to come up with a nice pattern for this.
Right now, the addon's snippet finder uses naive text matching during the build step to look for the opening and closing freestyle-usage
curlies. It has no concept of usage within an iterator.
What you'd need to do right now is create separate snippet files and reference them by name in your each
block. This would probably be annoying to maintain, but it would work.
I have been mulling over something that could be semi-related, so let me know if you want to chat / pair.
from ember-freestyle.
Now that I think about it, perhaps I don't really want snippets for each of these. If they're really all variants on the same code, then I can do the code once at the top and then write all the instances as a table or a list or something.
from ember-freestyle.
Ok. I'll close this in the meantime but continue to think this through.
Cheers.
from ember-freestyle.
Related Issues (20)
- Style loading issues with freestyle page snapshot using @percy/ember HOT 6
- `ember-canary` scenario fails HOT 1
- Drop support for Node.js v10
- Remove `pick` helper? HOT 3
- Revert allowing the `ember-beta` scenario to fail
- Test against Embroider
- Remove the use of `ember-cli-sass-lint` HOT 1
- Deprecate `FreestyleShowdownContent` component
- Remove `freestyle-note` component from `app` folder HOT 1
- Update `ember-auto-import`
- Remove resolutions / unpin dependencies
- Use `exclude` option instead of `blacklist` option in README once available
- Migrate to Glimmer components
- Don't publish `.husky` folder
- Add support for glint HOT 2
- Migrate to V2 addon HOT 1
- UI / UX Improvements HOT 1
- Remove use of `EmptyObject` type HOT 1
- Add optional Freestyle::Usage section to document/explore CSS variables
- Breaks under `ember-cli` v5 (uses `ember-cli-preprocess-registry` v5)
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 ember-freestyle.