Answer the question
In order to leave comments, you need to log in
How to properly implement scopes to generate html code?
Good day. I am writing a training project for training / developing skills in Swift.
The essence of the project is the generation of html code from swift.
Link to main.swift
Link to HtmlBuilder.swift
The problem is that the tags are not quite added to the "exhaust" this way. Looking at the structure in main.swift and the exhaust itself (below)
<body id='test2'>
<p id='test2'>
<tagname>wow test custom tag</tagname>
<a class='link-button' href='http://www.site.ru'>click me</a>
</p>
</body>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question