mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
siteextra to support site source html preprocessing before rendering
This commit is contained in:
parent
7c38fa2615
commit
3eacdfbe86
17 changed files with 22 additions and 30 deletions
|
@ -66,14 +66,14 @@
|
|||
<li>Long press the button "settings", check the option "Apply user styles".</li>
|
||||
</ul>
|
||||
<p>If file "default.css" exists, the style will be applied to all sites without matching [domain root].css.</p>
|
||||
<h3 id="extra-html-experimental">Extra html (experimental)</h3>
|
||||
<h3 id="extra-html">Extra html</h3>
|
||||
<ul>
|
||||
<li>Need to be named as "[domain].html".</li>
|
||||
<li>Need to be named as "[domain].html". Notice: the file name here is "[full domain]" not "[domain root]".</li>
|
||||
<li>Under folder "siteextra".</li>
|
||||
<li>Long press the button "settings", check the option "Apply user extra".</li>
|
||||
<li>May have issues with some redirected urls.</li>
|
||||
</ul>
|
||||
<p>"sitejs/.js" , "sitecss/.css" and "sitecss/.js" are applied to all non-http urls (file urls etc.).</p>
|
||||
<p>The extra html could be placed before the site source html (uweb uses an algorithm to merge the extra html with the site source html automatically). Ex. when the extra html ends with "<textarea>", the site source html appears as the value of the textarea element, thus the extra html can further process the the site source html before rendering. For sites with textarea elements, "<div><textarea>" could be used.</p>
|
||||
<p>"sitejs/.js", "sitecss/.css", "sitecss/.js" and "siteextra/.html" are applied to all non-http urls (file urls etc.).</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue