I want to read all .hbs files and render them #548
Replies: 1 comment 3 replies
-
I don't think that's right. Handlebars doesn't have any notion of files or folders. If you check out the handlebars documentation you won't see any reference to views or folders. There are frameworks and view engines that use handlebars as their templating language - the experience you're describing, you must have been using one of those. There are some equivalent view engines out there for c# that use this library as their core engine. Without knowing more about your application architecture or requirements, I can't recommend a specific one, but hopefully that gets you started. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am a bit confused, normally in handlebars (using javascript etc.) I can just let the views be rendered based on the standard folder structure.
Here it seems like I need to copy & paste all HTML to the C# code which seems a bit much so I must be missing something!
I am wondering how I can read all source and templates from the image below and render them as HTML
Beta Was this translation helpful? Give feedback.
All reactions