You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Mold builds on [Go templates](https://pkg.go.dev/text/template) to provide a sim
11
11
12
12
Mold offers the following, making it an ideal choice for Go projects.
13
13
14
-
-**Lightweight**: uses only the Go standard lib with no external dependencies.
14
+
-**Lightweight**: uses only the Go standard library with no external dependencies.
15
15
-**Efficient**: utilises Go's in-built template parser under the hood.
16
16
-**Capable**: supports all capabilities of Go templates.
17
17
-**Familiar**: employs the well-known [concepts](#concepts) of Layouts, Views and Partials.
@@ -121,7 +121,8 @@ By default, the view's data context is used.
121
121
Sections allow content to be rendered in specific parts of the layout.
122
122
They are defined within views with a `define` block.
123
123
124
-
The [default layout](https://github.com/abiosoft/mold/blob/main/layout.html) is able to render HTML content within the `<head>` tag by utilising the `head` section.
124
+
The [default layout](https://github.com/abiosoft/mold/blob/main/layout.html) is able to render HTML content within
125
+
the `<head>` tag by utilising the `head` section.
125
126
126
127
```html
127
128
{{define "scripts"}}
@@ -132,10 +133,9 @@ The [default layout](https://github.com/abiosoft/mold/blob/main/layout.html) is
132
133
133
134
## Why not standard Go templates?
134
135
135
-
Go templates, while simple and powerful, can feel unfamiliar when dealing with multiple template files to structure
136
-
a web app.
136
+
Go templates, while simple and powerful, can feel unfamiliar when dealing with multiple template files.
137
137
138
-
Mold addresses this by providing an intuitive and conventional higher-level use of Go templates.
138
+
Mold addresses this by providing an intuitive framework for structuring web applications with Go templates.
0 commit comments