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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?