erb-lint:检查您的ERB文件中是否有结束标签,缩进,不良属性等

时间:2024-04-20 11:12:55
【文件属性】:

文件名称:erb-lint:检查您的ERB文件中是否有结束标签,缩进,不良属性等

文件大小:11KB

文件格式:ZIP

更新时间:2024-04-20 11:12:55

Ruby

ERB ::棉绒 可以很容易地在ERB文件中引入错误,未关闭的标签,错误的属性名称,错误的缩进。 ERB :: Lint可以通过将ERB标签变成HTML-ish标签并在结果上运行适当HTML linter来检查这些错误: 原始ERB < div> <% if @foo == :bar %> <%= image_tag ( item [ :value ] , alt : item [ :value ] ) %> <% elsif @type == :other %> < span> <%= item [ :value ] %> <% else %> <% raise "unknown type" %> <% end %> 生成HTML,供皮棉消耗 < div> < erb silent erb-


【文件预览】:
erb-lint-main
----erb-lint.gemspec(1KB)
----bin()
--------console(373B)
--------setup(131B)
----Rakefile(226B)
----test()
--------erb()
--------test_helper.rb(133B)
----Gemfile(173B)
----Gemfile.lock(260B)
----.gitignore(73B)
----lib()
--------erb()
----README.md(5KB)
----LICENSE.txt(1KB)
----exe()
--------erb-lint(193B)

网友评论