【发布时间】:2019-03-26 06:23:18
【问题描述】:
在下面Slim代码的sn-p中,我们如何在head标签中的javascript标签(类似html中的script标签)中添加id/type属性。
Slim docs 除了简单的警报语句之外,没有显示如何执行此操作。
附:为了简洁,代码保持简短
doctype html
html
head
title
| Example
<!-- How to add script id and type in the following code? -->
javascript:
alert('Slim supports embedded javascript!')
body
#root
【问题讨论】:
标签: javascript html slim-lang