ventojs / vento

🌬 A template engine for Deno & Node
https://vento.js.org/
MIT License
153 stars 9 forks source link

help me pls, why im unable to ascess props? #39

Closed ArnavK-09 closed 4 months ago

ArnavK-09 commented 4 months ago

image

image

oscarotero commented 4 months ago

If the variable doesn't exist, heading ?? "My section" will fail. Change it to it.heading ?? "My section" (referencing the variable from it global object).

ArnavK-09 commented 4 months ago

If the variable doesn't exist, heading ?? "My section" will fail. Change it to it.heading ?? "My section" (referencing the variable from it global object).

https://vento.js.org/syntax/layout/#data

I followed this and here it is not used 🤔

oscarotero commented 4 months ago

Hmm. In your capture you're including skill.vto file but the condition is in section.vto. Are you sure this is correct?

If so, do you have a repo that I can clone for debugging?

ArnavK-09 commented 4 months ago

Ohhh man I'm stupid! Sorry!

But, if I'll use it.heading it won't throw error in section component if no heading given...I'll try that

Soo sorry 😢