hexo-helper-ruby

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hexo-helper-ruby

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • futaba_isshiki
  • sakunahime