hexo-tag-real-time-calculator

1.1.0 • Public • Published

hexo-tag-real-time-calculator

A hexo plugin for inserting values which need to be calculated on real time.

This plugin is very easy to use.

Installation

Locate to the root path of your hexo blog.

npm i hexo-tag-real-time-calculator --save

Done!

Usage

{% calc '<JS code for returning result.>' %}

For example:

I'am {% calc "(new Date()).getFullYear()-1992" %} years old.

Or

I'am {% calc '(new Date()).getFullYear()-1992' %} years old.

The output is(in 2019):

I'am 27 years old.

Package Sidebar

Install

npm i hexo-tag-real-time-calculator

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

3.07 kB

Total Files

4

Last publish

Collaborators

  • libook