Questions tagged [templating]

Template systems typically consist of a Template Engine, Content Repository, and Template Repository.

Utilizing JSON Keys with Spaces in Adaptive Card Templates

Having difficulty utilizing API response data for Adaptive Card templating due to key names containing spaces. For instance, consider the following example: Data { "General": { "Computer Name": "Computer-Name", &quo ...

AngularJS - Creating a Single Page Application with Routing and Templating

As a newcomer to angularJS, I find myself getting stuck on small questions related to setting up an internal routing service for protected files and routes. I would greatly appreciate any explanations or helpful links that could provide me with the missi ...

Utilizing Node.js, Express, Jade, and Templates within a single package

Can templates for an express application be stored in a separate package? In my scenario, I am interested in having a shared package that contains global templates to ensure all apps have a consistent look and feel, even if they are running independently ...

Having issues getting Nunjucks templates to render correctly in Express

There seems to be an issue with setting up the template hierarchy in Express or possibly an error in how Nunjucks is being utilized. The goal is to have a template that includes common parts and specific pages that extend this template. It appears that the ...

Displaying a list in KoGrid is a feature that allows for easy

Utilizing KoGrid to bind data from a DataArray has been successful for displaying flat data. However, when dealing with an object member that is an array, the grid fails to display all the array members as a list. This issue arises because KoGrid struggles ...

Discover the ins and outs of integrating YAML front matter into your destination directory path

I am looking to customize the path of my blog posts to include a fancy date format like /blog/2013/09/17 so that the links from my previous octopress blog remain intact. Within the YAML front matter on each markdown page, I have included the date informat ...

Sending data to the template

Currently, I am working with NodeJS/Expressjs and have implemented the following route: router.post({ var value = req.body.value; //I NEED TO DO SOMETHING LIKE var file = '../test/test.js'; file.render(value); }); The content of /test/test. ...

Is it possible to implement the EJS templating engine in nodeJS/express without utilizing the `res.render` function?

Is there a way for me to send a JSON object that includes an HTML snippet created from one of my EJS templates using res.send? res.send({ status: "xyz", timestamp: new Date(), htmlContent: "" //=====> HTML snippet from template.ejs here }); ...