html2slim

convert html files to slim

  • 所有者: slim-template/html2slim
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Version

Build Status

Code climate

HTML2Slim

Script for converting HTML and ERB files to slim.

Usage

You may convert files using the included executables html2slim and erb2slim.

# html2slim -h

Usage: html2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options]
        --trace                      Show a full traceback on error
    -d, --delete                     Delete HTML files
    -h, --help                       Show this message
    -v, --version                    Print version

# erb2slim -h

Usage: erb2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options]
        --trace                      Show a full traceback on error
    -d, --delete                     Delete ERB files
    -h, --help                       Show this message
    -v, --version                    Print version

Alternatively, to convert files or strings on the fly in your application, you may do so by calling HTML2Slim.convert!(file, format) where format is either :html or :erb.

License

This project is released under the MIT license.

Author

Maiz Lulkin and contributors

OFFICIAL REPO

https://github.com/slim-template/html2slim

GOOD TO KNOW

ERB requires a full Ruby parser, so it doesn't really work for all use cases, but it's certainly helpful.

主要指标

概览
名称与所有者slim-template/html2slim
主编程语言Ruby
编程语言Ruby (语言数: 1)
平台
许可证
所有者活动
创建于2011-03-25 18:53:14
推送于2024-05-01 08:31:41
最后一次提交2024-05-01 10:31:41
发布数1
最新版本名称0.2.0 (发布于 )
第一版名称0.2.0 (发布于 )
用户参与
星数279
关注者数8
派生数46
提交数73
已启用问题?
问题数29
打开的问题数11
拉请求数13
打开的拉请求数3
关闭的拉请求数5
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?