Question

I'm very new to node.js and I'm using the railway.js framework to learn MVC at the sametime. We use C# at work. I'm a front-end Dev.. I can't seem to figure out or see any documentation on how to render a partial view in railway properly. Any help would be appreciated.

Was it helpful?

Solution

Try this code in your view:

<%- partial('viewname') %>

It will use express2.0 lookup partial procudure. Hint: it it's your first steps with railwayjs, start with scaffold generator railway generate crud post title content

Check railway starter guide available at github: https://github.com/1602/express-on-railway/wiki/RailwayJS-starter-guide

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top