namshi/nunjucks-setasync

Name: nunjucks-setasync

Owner: Namshi

Description: Like set, but for async functions.

Created: 2017-01-18 11:37:56.0

Updated: 2017-05-17 19:16:10.0

Pushed: 2017-03-21 06:17:33.0

Homepage: null

Size: 8

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nunjucks-set-async

Like set, but for async functions.

Usage

You can use this extension in the following 4 easy steps:

Example

In this example we are simulating getting the number of astronauts currently in space with an asynchronous function:

etAsync('numberofAstronauts', getNumberOfAstronauts, []) %}
There are {{numberofAstronauts}} in space right now! </p>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.