-
-
Notifications
You must be signed in to change notification settings - Fork 20
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]: A way to define data in html #54
Comments
@andreyvolokitin Hi, see example |
Which example specifically? I can only find one here where it says that we need to pass data directly to the plugin |
Currently only the plug-in is available. |
related to #44 (date as inline in scope) |
Yep, seen that. What I wanted is something like this: https://mozilla.github.io/nunjucks/templating.html#macro — a standard concept in templating engines, where you invoke some partial with some parameters. It is interesting to mention that |
Possible implementation: <scope
var1="text"
var2="text text text"
var3="text text text text text"
>
<include src="include.html"></include>
</scope> also:
Problems:
What do you think? |
Details: posthtml#54
Related: posthtml#54
+1 |
+1 Any plan to implement inline invocation of templates like stated above? We're using rollup for our build process and, to use this, it seems like I'd need to either add locals to my build code (not feasible) or in my template HTML file (also not feasible) in order to use this. It would be really nice to be able to define an object in my JS and invoke the template and pass in the JS object similar to how rollup-plugin-posthtml-template works, but better. |
interest in this task seems to be growing) I will try to increase the priority of this task for myself. Anyone can make their contribution to the development of this project. |
Documentation states one way to define data — via plugin invocation. But often it may be necessary to define data directly in HTML for specific expressions (like data for included "template" with some expressions). May it be possible with
posthtml-expressions
?The text was updated successfully, but these errors were encountered: