Questions tagged [marko]

An HTML-based templating engine that compiles templates to Node.js-compatible JavaScript modules and supports streaming, async rendering and custom tags.

Marko is a fast and lightweight HTML-based templating engine that compiles templates to CommonJS modules and supports streaming, async rendering and custom tags.

Learn more on http://markojs.com/.

64 questions
0
votes
1 answer

markojs data variable access in client side javascript

i am setting array of json objects into data variable like this data.journeyDetail = detail; in marko file i need to access it inside javascript block and for each record need to print FullName from the object. how to do this? server side code: …
Najam Awan
  • 1,113
  • 3
  • 13
  • 30
-1
votes
1 answer

Do any modern UI rendering libraries cater for static XML?

Can I use React, Vue, or Marko or similar libraries to accomplish XML output? It appears that XML output is not a feature of any of these libraries (although it does seem to be possible to inject new (final,renderable) tags into Marko). I need to…
pwray
  • 1,075
  • 1
  • 10
  • 19
-1
votes
1 answer

How to update specific div using JQuery AJAX after regular time intervals?

I want to update specific div - not full html page .When i run the following code it works fine but it reloads whole html. Moreover, I'm using different layouts e.g i have header, layout, footer in different file. $(document).ready(function() { …
DEO
  • 316
  • 2
  • 4
  • 18
-2
votes
1 answer

Views and Partials for NodeJS?

My project uses Koa2 with Marko on the front. I'm looking to avoid repeating layout HTML that's common on every page. Essentially splitting it out into partials and having a "main" partial (with all the common stuff in it!). I'm from the "Rails…
Qasim
  • 1,554
  • 1
  • 13
  • 22
1 2 3 4
5