We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.template-helpers.js
Template7.registerHelper('steps', function(step1, step2) { var str = '<div class="steps">'+ '<div class="step1">' + step1 + '</div>' + '<div class="step2">' + step2 + '</div>' + '</div>'; return str; }); module.exports = ['steps'];
.f7.html content is: {{steps 'step1' 'step2'}}
{{steps 'step1' 'step2'}}
webpack.config.dev.js
test: /\.f7.html$/, use: [ 'babel-loader', { loader: 'framework7-component-loader', options: { helpersPath: './src/js/template-helpers.js', partialsPath: './src/template/', partialsExt: '.f7p.html' } } ], },
ERROR in ./src/../aa.f7.html Module build failed (from ./node_modules/framework7-component-loader/lib/index.js): Error: Template7: Missing helper: "steps" at Template7Class.compile (D:\luran\projects\xinge-pk-copy\bmanagersys\node_modules\template7\dist\template7.js:590:17) at Function.compile (D:\luran\projects\xinge-pk-copy\bmanagersys\node_modules\template7\dist\template7.js:655:21) at Object.loader (D:\luran\projects\xinge-pk-copy\bmanagersys\node_modules\framework7-component-loader\lib\index.js:161:43)
The text was updated successfully, but these errors were encountered:
Нужно добавить steps в этот файл: https://github.com/framework7io/framework7-template-webpack/blob/master/src/template7-helpers-list.js
Sorry, something went wrong.
I also get this error:
Also get the missing helper error when opening the tab (framework 5.7.8)
Нужно перезапустить webpack
Already did that (several times), doesn't work.
No branches or pull requests
1.template-helpers.js
.f7.html content is:
{{steps 'step1' 'step2'}}
webpack.config.dev.js
The text was updated successfully, but these errors were encountered: