More simplicity and flexibility in interacting with properties #329
Replies: 4 comments 3 replies
-
Could you explain in more detail what do you mean by this? What exactly would you want to be able to do but currently can't? |
Beta Was this translation helpful? Give feedback.
-
For example, if I want to pass a title on each page, I can't Page controller:
Page template:
|
Beta Was this translation helpful? Give feedback.
-
The purpose of this discussion is to create a simple page with instructions (documentation). I am available to help in any way I can. |
Beta Was this translation helpful? Give feedback.
-
You should be able to. I don't know if the example you provided is the exact same code you tried or not, but you have a mistake there, it should be Aside from that if you were to render this App component like below you should be able to render it with a title specified in the function call argument: import { renderToHtml, createElement } from "jsxte";
const html = renderToHtml(createElement(App, { title: "My specific title" })); |
Beta Was this translation helpful? Give feedback.
-
In the last few years I've been looking for Node template engine that were within the most modern standards, I've been using Pug/Jade until I found JSXT.
I started using JSXT not too long ago and noticed some limitations or maybe just my lack of knowledge. It is not possible to change
<title>
dynamically according to each page, in the template documentation and examples, there is nothing that clearly explains this.I suggest creating a documentation page with more details and examples.
Beta Was this translation helpful? Give feedback.
All reactions