Comments (3)
I have created a small gem available at https://github.com/KillaPL/ember_widgets_rails to simplify rails integration. I only need carousel widget and this is the only one available in the gem right now. However, the ability to include components individually is possible to achieve using sprockets, as I've done in the gem. If you'd like, I can try sending a pull request to achieve the same effect here.
from ember-widgets.
I'd be interested to hear more, but I don't have enough rails background to understand how your gem works or whether your approach would be applicable here. Could you explain, or just make a rough PR so I can get an idea of what it would look like?
Alternatively - @bigsley may have a better understanding, since he's worked more with rails.
from ember-widgets.
Sorry for the delay.
Basically sprockets works my adding so colled directives, and then proprocessing files. Preprocessing concatenates all requested files into one. When developing web apps it allows to work on separate files for separate concerns, and deploy a single file to production.
If you take a look at https://github.com/KillaPL/ember_widgets_rails, you will notice that all I did was, I copied whole repo from here and created file like this:
#= require ../origin/ember_widgets
#= require ../origin/src/carousel
#= require ../origin/src/templates/carousel
#= require_self
(+ some templates setting up not related to this problem)
If this file was compiled by itself, it would provide a standalone file with carousel widget. If some widgets use common files, the common is obviously only included once, so it's a good way to provide standalone, and smallest possible file with expected widgets.
It should be even possible to create an automated source generator with it, something like bootstrap has.
from ember-widgets.
Related Issues (20)
- How can a user reset the selected value in the Select widget? HOT 4
- Demo app / select widget doesn't work with Ember 1.7 HOT 6
- Ember CLI Accordion Issue HOT 2
- Have greater control over modal submit. HOT 3
- Option to disable animations while testing HOT 1
- Proposal to implement proper tab focus HOT 3
- ember-cli-ember-widgets HOT 8
- too much dependencies, too little information HOT 2
- Support additional custom actions in modal component
- search by group HOT 1
- dropdown always - is possible ? HOT 2
- Plans on porting it to Javascript (ES6)? HOT 1
- popover-link-component is "jumpy" on css fixed elements HOT 4
- Consider adding more features to the Carousel
- Uncaught TypeError: Cannot read property 'extend' of undefined HOT 1
- ember-widgets for ember 1.12.0 HOT 1
- Clean selected option on Select widget
- Only use one of the compoenents HOT 2
- Confused on how to add to ember-cli project HOT 5
- Support custom css classes for header/body/footer in modal component HOT 2
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-widgets.