luro/automad-csv2html
最新稳定版本:v2.0.0
Composer 安装命令:
composer require luro/automad-csv2html
包简介
The CSV code is converted into bootstrap html code
关键字:
README 文档
README
This extension extends automad to generate tables from simple csv file strings.
Options
| Param | Description | Values |
|---|---|---|
| rawText | submit csv (separator is semicolumn) formated raw text | use '#' as line break |
| hasHeader | first row shall be formated as header row | true|false |
| cssTableClass | none or multiple css classes. the generic 'table' class must not be set, it is added automatically | string |
| cssTheadClass | none or multiple css classes. | string |
Usage
call the formatter from within your template: <@ LuRo/Csv2Html { rawText: rawText: @{ yourVariableCsvTextName }, hasHeader: @{ yourVariableHasHeaderName | def ('true') } } @>
Example Data
Header cell 1;Header cell 2;Header cell 3# Row1 celldata1;Row1 celldata2;Row1 celldata3#
统计信息
- 总下载量: 93
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-12