fix: handle {#if} template conditionals and raw-text style/script in elc
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:
2026-05-07 13:06:25 -05:00
parent 032be3a058
commit 5a8783ff0c
3 changed files with 3 additions and 3 deletions
Binary file not shown.
+1 -1
View File
@@ -82,10 +82,10 @@ fn environmental() -> String {
</div>
</div>
</section>
<style>
@media (max-width: 768px) {
.env-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
</style>
</section>
}
+2 -2
View File
@@ -133,8 +133,6 @@ fn marketplace() -> String {
<script src="/js/marketplace.js" defer></script>
</section>
<style>
#marketplace { padding: 6rem 0; }
.marketplace-header { margin-bottom: 4rem; }
@@ -229,4 +227,6 @@ fn marketplace() -> String {
}
.dev-textarea { resize: vertical; min-height: 120px; }
</style>
</section>
}