plugin responsible for automatically manipulating a date according to an RDFA instructive .
- Ember.js v3.4 or above
- Ember CLI v2.13 or above
- Node.js v8 or above
ember install @lblod/ember-rdfa-editor-date-manipulation-plugin
An instructive is an RDFA snippet you insert in your template.
Currently the following snippet should be inserted:
<span property="a:specificProperty" datatype="dateplugin:date" content=""></span>
and will result, once triggered by the eventProcessor, in:
<span property="a:specificProperty" datatype="dateplugin:date" content="2018-09-17">
17 september 2018
</span>
The text value of the span is moment.js long format date, localized. The config of moment.js should be provided by the parent app, in the config/environment.js:
let ENV = {
moment: {
includeLocales: ['nl'],
}
}
If used in datatype="dateplugin:dateTime"
, current datetime will be set.
See the Contributing guide for details.
This project is licensed under the MIT License.