Skip to content

Commit

Permalink
Add backticks to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Nov 2, 2023
1 parent d1bf5d0 commit 14b5e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ See the complete list of supported attributes in the [`attrs` package](./attrs/a
html := content.Render()
```

### Generating Lists of Elements with TransformEach
### Generating Lists of Elements with `TransformEach`

With `elem`, you can easily generate lists of elements from slices of data using the `TransformEach` function. This function abstracts the repetitive task of iterating over a slice and transforming its items into elements.

Expand Down Expand Up @@ -151,7 +151,7 @@ In this example, if `isAdmin` is `true`, the `Admin Panel` link is rendered. Oth
- `Tr`: Table Row `<tr>`
- `Ul`: Unordered List `<ul>`

### Setting Styles with the styles Subpackage
### Setting Styles with the `styles` Subpackage

With the `elem` library, you can also programmatically define and apply CSS styles to your HTML elements using the `styles` subpackage. This approach leverages Go's type system to ensure that your style property names and values are correctly defined.

Expand Down

0 comments on commit 14b5e28

Please sign in to comment.