Parcel Plugin
npm install parcel-plugin-framework7-component-loader> Parcel plugin for Framework7 single file router components
> This plugin i fork from original webpack plugin framework7-component-loader to work also for parcel-bundler
parcel-plugin-framework7-component-loader is a plugin for parcel that allows you to author Framework7 Router components in a format called Single-File Components:
``html
{{msg}}
{{> 'foo'}}
{{> 'bar'}}
{{> 'external'}}
foo
bar
``
#### External partial templates example (see config for location)html`
External template get scope context {{msg}}
``
npm i parcel-plugin-framework7-component-loader
`js`
// Example for .f7rc.js or f7.config.js
module.exports = {
helpersPath: './src/template7-helpers-list.js',
partialsPath: './src/pages/',
partialsExt: '.f7p',
t7InWIndow: false // Set true if you using window.Framework7
}
`json``
// Example for using .f7rc
{
"helpersPath": "./src/template7-helpers-list.js",
"partialsPath": "./src/pages/",
"partialsExt": ".f7p",
"t7InWIndow": false
}