insomnia/app/templating/extensions/TimestampExtension.js
Gregory Schier 55bfe2acb9 Templating Improvements and Response Tags (#88)
* Version bump

* Got async Nunjucks extensions working

* Got JSONPath extension working

* Swapped render function for new stuff

* Wrote custom recursive render function

* traverse -> clone

* add-module-exports

* Moved tests
2017-02-20 10:32:27 -08:00

13 lines
230 B
JavaScript

import BaseExtension from './base/BaseExtension';
export default class TimestampExtension extends BaseExtension {
constructor () {
super();
this.tags = ['timestamp'];
}
run (context) {
return Date.now();
}
}