0.3.2 • Published 4 years ago

@lblod/ember-rdfa-editor-date-manipulation-plugin v0.3.2

Weekly downloads
27
License
MIT
Repository
github
Last release
4 years ago

ember-rdfa-editor-date-manipulation-plugin

plugin responsible for automatically manipulating a date according to an RDFA instructive .

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install @lblod/ember-rdfa-editor-date-manipulation-plugin

Usage

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.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago