Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7
License
NotificationsYou must be signed in to change notification settings
framework7io/framework7-loader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Webpack loader for Framework7 single file components
framework7-loader
is a loader forwebpack that allows you to authorFramework7 Router components in a format calledSingle-File Components:
<!-- my-page.f7.html --><template><divclass="page">${msg}</div></template><script>exportdefault()=>{constmsg='Hello world';return$render;};</script>
npm i framework7-loader
module.exports={ ...module:{rules:[ ...{test:/\.f7.html$/,use:['babel-loader','framework7-loader',],}, ...]}...}
Framework7 v6 single file components also support JSX:
<!-- my-page.f7.html --><script>exportdefault()=>{constmsg='Hello world';return()=><divclass="page">{msg}</div>;};</script>
// my-page.f7.jsexportdefault()=>{constmsg='Hello world';return()=><divclass="page">{msg}</div>;};
About
No description, website, or topics provided.
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.