-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
dynamic attributes not working when using webc:keep #66
Comments
Can you provide how
|
my <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title @text="title"></title>
<style @raw="getBundle('css')" webc:keep></style>
</head>
<body @raw="content"></body>
</html> |
Ah, then is your original comment mislabeled? I would like to know what <!-- layouts/base.webc -->
<link webc:if="css" webc:keep rel="stylesheet" :href="css">
<!-- will render to -->
<link rel="stylesheet" href="function (...args) {
benchmark.before();
let ret = callback.call(this, ...args);
benchmark.after();
return ret;
}"> |
sorry i forgot something... my <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title @text="title"></title>
<link webc:keep rel="stylesheet" :href="`assets/css/${this.css}`" />
<style @raw="getBundle('css')" webc:keep></style>
</head>
<body @raw="content"></body>
</html> and inside my ---
layout: layouts/base.webc
css: home.css
--- but this: <link webc:keep rel="stylesheet" :href="`assets/css/${this.css}`" /> will render to: <link rel="stylesheet" href="function (...args) {
benchmark.before();
let ret = callback.call(this, ...args);
benchmark.after();
return ret;
}"> |
Perfect, that’s what I needed, thank you. |
Fixed by 731604f |
Dynamic variables are not resolved when using
webc:keep
This works ✅
But this doesn't work 🚫
The text was updated successfully, but these errors were encountered: