Comments (5)
We have released the new LemonadeJS v3. Now, you can load that as a module as follow.
https://lemonadejs.net/v3/docs/module
In regards to Webcomponents, you can inject LemonadeJS and create a reactive webcomponent.
https://lemonadejs.net/v3/docs/web-components
from lemonadejs.
Can you send real world example on where you would like to use import?
from lemonadejs.
The project I'm working on is still private on GitHub but follows the following structure seen here
The index document imports the main "app" as a module, and then all assets and scripts are loaded during runtime delegating the responsibility to the app. Shorter, no more than a single <script> in index.html. This can be still achieved by the workaround described above, but I wonder what are the reasons that prevent this scheme from working with LemonadeJS.
Maybe it helps mentioning I am not using any intermediate tools like webpack, transpilers, etc. I work on an embedded-like environment (audio plugins) with as few layers as possible, no dependencies and hand-written JavaScript. In that sense I picked LemonadeJS because it provides reactive views without all the unnecessary bloat in this setup.
from lemonadejs.
React cannot be imported as a module on a browser yet. This project has 200+ stars and addresses the same issue but for React, guess there are more use cases.
from lemonadejs.
Thanks, I will definetely take a look...
from lemonadejs.
Related Issues (20)
- contact not reachable HOT 1
- Incorrect CDN reference in Getting Started documentation HOT 1
- How To: strategy to keep the components in their respective js files... HOT 2
- The latest version of NPM was 3 years ago? HOT 1
- lemonade.apply doesn't have ext parameter HOT 1
- Render/Load/Mount a specific component on App's main container on menu clicks HOT 1
- bind & loop problem HOT 3
- Unable to access parent.properties inside child template! HOT 1
- <select> @bind @loop HOT 2
- indexOf and selected attribute, how to implement this in the template lemonade ? HOT 1
- Loop HOT 5
- Refresh data on newly added element in the dom after calling "apply" HOT 1
- Question: Is there expanded notations for @ref, @bind, @loop and @ready HOT 2
- Failed to refresh in nested UI object HOT 1
- Initial state for function vs class based components HOT 20
- Improving the syntax (inspiring from reactjs) HOT 1
- Incorrect lemonade.d.ts types HOT 2
- Render Field as HTML HOT 3
- Could Lemonadejs consist of expressions checking? HOT 3
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 lemonadejs.