diff options
author | Markus Wüstenberg | 2020-09-23 22:10:35 +0200 |
---|---|---|
committer | GitHub | 2020-09-23 22:10:35 +0200 |
commit | f27cb0c05f23785189979e57c831eb798e1da1f1 (patch) | |
tree | 902f20b3698d7470b4fa5769278319424463f88b /README.md | |
parent | 3de9270f785082b70e5d3cb7212271d7ad86a6d9 (diff) | |
download | gomponents-f27cb0c05f23785189979e57c831eb798e1da1f1.tar.lz gomponents-f27cb0c05f23785189979e57c831eb798e1da1f1.tar.zst gomponents-f27cb0c05f23785189979e57c831eb798e1da1f1.zip |
Add Textf function (#17)
Like Text, but calls fmt.Sprintf before rendering.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md index b817ad0..23b29b7 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ func Page(title, path string) g.Node { el.Body( Navbar(path), el.H1(title), - el.P(g.Text(fmt.Sprintf("Welcome to the page at %v.", path))), + el.P(g.Textf("Welcome to the page at %v.", path)), ), ), ) |