-
Notifications
You must be signed in to change notification settings - Fork 33
Added some clarifications #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,22 @@ Plain text does still use tag and string [interpolation](interpolation.html), bu | |
|
||
One common pitfall here is managing whitespace in the rendered HTML. We'll talk about that at the end of this page. | ||
|
||
## Free text | ||
|
||
Simple free text can be added to the page, without a tag, by using a pipe. Note: Free text like this has various caveats regarding styling, etc. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have been calling this "piped text", so this section should be merged with that section that's further down the page. It may be that:
I'm happy to hear opinions on this, and I don't have a strong opinion on it of my own. As a relative beginner, you're probably much better placed than I am to suggest what the best wording is for the help files. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah see I had no idea that's what Piped Text was intended for. . . it came across as "piped text is a continuation of text in an element", with the existing example being a continuation of |
||
|
||
```pug-preview | ||
div | ||
| This is plain old free text. | ||
``` | ||
|
||
|
||
## Inline in a Tag | ||
|
||
The easiest way to add plain text is *inline*. The first term on the line is the tag itself. Everything after the tag and one space will be the text contents of that tag. This is most useful when the plain text content is short (or if you don't mind lines running long). | ||
The easiest way to add plain text is *inline*. The first term on the line is the tag itself. Add the tag, then one space, and then the text contents of that tag. This is most useful when the plain text content is short (or if you don't mind lines running long). | ||
|
||
```pug-preview | ||
p This is plain old <em>text</em> content. | ||
p This is paragraph <em>text</em> content. | ||
``` | ||
|
||
## Literal HTML | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this be clearer as:
i.e. first, are they "Finn", second, do they have a description, with a space between the two if blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first section makes sense, I've changed it.
The second section, I was trying to work in the boolean style 'if exists' check on the more sensible
authorised
element.