-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
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
feat(vue-renderer): support evaluation in templates #6505
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #6505 +/- ##
==========================================
- Coverage 95.83% 95.79% -0.04%
==========================================
Files 78 78
Lines 2713 2713
Branches 702 702
==========================================
- Hits 2600 2599 -1
- Misses 98 99 +1
Partials 15 15
Continue to review full report at Codecov.
|
Could you add a test for the feature? |
@manniL I've modified I don't know why e2e test failed after this commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Types of changes
Description
In Nuxt we can't use conditions in the app template.
Nuxt loads
app.html
with WebpackHTMLPLugin
and this plugin internally evaluate templates, Because of this, Nuxt can't evaluate templates like<% if (something) { %> ... <% } %>
on run time, and this code evaluates at build.This change gave more flexibility to app templates, and define a new block for run-time evaluation. for a simple usage
Checklist: