fix: handle {#if} template conditionals and raw-text style/script in elc
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 51s
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 51s
Parser now supports {#if cond}...{#else}...{/if} blocks as HtmlIf AST nodes.
Style and script elements collect content as raw text, bypassing El expression
parsing entirely — eliminating O(n²) CSS parse time on large style blocks.
This commit is contained in:
Binary file not shown.
@@ -82,10 +82,10 @@ fn environmental() -> String {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
<style>
|
<style>
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.env-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
|
.env-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
</section>
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -133,8 +133,6 @@ fn marketplace() -> String {
|
|||||||
|
|
||||||
<script src="/js/marketplace.js" defer></script>
|
<script src="/js/marketplace.js" defer></script>
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#marketplace { padding: 6rem 0; }
|
#marketplace { padding: 6rem 0; }
|
||||||
.marketplace-header { margin-bottom: 4rem; }
|
.marketplace-header { margin-bottom: 4rem; }
|
||||||
@@ -229,4 +227,6 @@ fn marketplace() -> String {
|
|||||||
}
|
}
|
||||||
.dev-textarea { resize: vertical; min-height: 120px; }
|
.dev-textarea { resize: vertical; min-height: 120px; }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
</section>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user