diff options
| author | Alexander Kavon <me+git@alexkavon.com> | 2025-07-03 03:15:24 -0400 |
|---|---|---|
| committer | Alexander Kavon <me+git@alexkavon.com> | 2025-07-03 03:15:24 -0400 |
| commit | 6dc6550c8828724712f58a7ec5874827ffbc9f56 (patch) | |
| tree | 1316af7d30f35d8a41558414f9e1ba73e4e2071b /static/contact.xsl | |
| parent | 9424f9c207ed3f270465250c0fcb5bf49e59c0c0 (diff) | |
pass title as variable
Diffstat (limited to 'static/contact.xsl')
| -rw-r--r-- | static/contact.xsl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/static/contact.xsl b/static/contact.xsl index 56624f1..ab9eeea 100644 --- a/static/contact.xsl +++ b/static/contact.xsl @@ -1,15 +1,17 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" /> <xsl:include href="head.xsl" /> + <xsl:param name="title"> + <xsl:text>Contact</xsl:text> + </xsl:param> <xsl:template match="/"> <html> - <head> - <xsl:call-template name="head" /> - <title>Contact</title> - </head> + <xsl:call-template name="head"> + <xsl:with-param name="title" select="$title" /> + </xsl:call-template> <body> - <h1>Contact</h1> + <h1><xsl:value-of select="$title" /></h1> <form id="contact-form" class="pure-form pure-form-stacked"> <label for="name_in"> Name |
