您好我是gradle
和nodejs
的新手。
我正在尝试为玉石中的p标签添加填充。我的玉文件如下:
extends layout
block content
center
h1= title
p Rate-Review-Ride
p(style='padding-left:500px;')
| Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language
| (DSL) instead of the more traditional XML form of declaring the project configuration.
| Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
| Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
| The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
| dfs dfd fdsfdf dfljjf ofds fojdofjdosj fojdofjdofjdof
但它没有在段落中添加填充。如果我在上面的代码中添加了center
,它会添加填充。请解释style
jade
的工作原理
答案 0 :(得分:1)
翡翠就像蟒蛇一样对行缩进非常严格。你需要把|右边有两个空格,如下所示:
block content
center
h1= title
p Rate-Review-Ride
p(style='padding-left:500px;')
| Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language
| (DSL) instead of the more traditional XML form of declaring the project configuration.
| Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
| Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
| The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
| dfs dfd fdsfdf dfljjf ofds fojdofjdosj fojdofjdofjdof
如果没有它,文字将不在<p>
标签中。