1.0.4 • Published 5 years ago

hexo-helper-ruby v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

hexo-helper-ruby

help you insert <ruby> snippets in hexo templates.

帮助您在hexo模板中插入<ruby>代码片段。

Helpers are used in templates to help you insert snippets quickly. Helpers cannot be used in source files.

辅助函数帮助您在模版中快速插入内容。辅助函数不能在源文件中使用。

Setup

via npm:

npm i hexo-helper-ruby

Usage

  • in your hexo templates (e.g.: .ejs files),
  • 在您的模板文件中(例如:.ejs文件),
<%- ruby('ruby_base', 'ruby_text') %>

e.g.:

<%- ruby('初音未来', 'Hatsune Miku') %>
// '<ruby><rb>初音未来</rb><rp>(</rp><rt>Hatsune Miku</rt><rp>)</rp></ruby>'

Changelog

Tests

  • there are no tests yet.
  • 目前尚未有测试。

Issues

License

MIT ©Futaba Isshiki

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago