title as tag is basically a tooltip for an element.
I was trying to change the title of the page, but head(title("Test")) would not work as title is only an attribute, hence correct syntax to compile would be head(title := "Test") but that renders to <head title="Test"> while <head><title>"Test"</title></head> is what is needed to render a website title.
I am not sure how it was managed to render the title here: http://www.lihaoyi.com/scalatags/, but I could not find a way so far and the docs do not help me here.
In any case Tags does not have a title in it and trying to create my own trait with values proved to be not working so far.
title as tag is basically a tooltip for an element.
I was trying to change the title of the page, but
head(title("Test"))
would not work as title is only an attribute, hence correct syntax to compile would behead(title := "Test")
but that renders to<head title="Test">
while<head><title>"Test"</title></head>
is what is needed to render a website title.I am not sure how it was managed to render the title here: http://www.lihaoyi.com/scalatags/, but I could not find a way so far and the docs do not help me here.
In any case
Tags
does not have atitle
in it and trying to create my own trait with values proved to be not working so far.