Hey devs! π
Iβm excited to introduce WebLite DSL, a minimalist domain-specific language that lets you build clean static websites with just YAML β and its perfect companion, the WebLite Try-It Editor, a real-time playground to bring your .wl sites to life instantly. π₯
π§ What is WebLite DSL?
WebLite is a simple yet powerful DSL (Domain Specific Language) that transforms human-readable .wl (YAML) files into full-blown HTML and CSS websites β no need to write a single HTML tag yourself!
Home:
Hero:
- "Title >> big centered red": "Hello WebLite*"
- "Description >> small gray": "Your YAML-powered site starts here!" *
This snippet magically becomes:
* Your YAML-powered site starts here!Hello WebLite
Highlights:
π Components: Create reusable layout blocks
π¨ Inline Styling: Use aliases like big, red, centered, or raw CSS
π Multi-page Support: Define pages like Home, About, Contact in one file
π¦ Zero dependencies on the frontend β itβs pure HTML/CSS
π» Try It Online β Instantly!
Writing YAML is one thing. Seeing it come alive instantly? Thatβs what the WebLite Try-It Editor does!
π [Live Demo (https://weblite-tryit.vercel.app/)]
βοΈ Built with MERN stack on the frontend and a Python Flask backend that runs the builder.py engine.
*π Features: *
π Monaco-based code editor with syntax highlighting
π Dark/Light theme toggle
πΌ Real-time browser preview via iframe
π No account needed β paste YAML and hit Run
π GitHub Repositories
www.github.com/scgssk/WebLite-DSL
π οΈ WebLite DSL (Builder Engine)
π§ͺ Try-It Editor (Frontend & Flask API)
π§© Built With PyYAML, Flask, uuid, shutil React, Monaco Editor, Render (for deployment)
β€οΈ Lots of modularity & markdown-like syntax handling
π Roadmap
[x] Dark mode
[x] Components
[x] Responsive Editor UI
[x] One-click hosting via Render
[ ] Custom themes & animations
[ ] Export to zip
[ ] Shareable URLs with your .wl site
[ ] Minify build (weblite site.wl --minify)
π Final Thoughts
Whether you're building personal pages, documentation sites, or teaching HTML/CSS concepts visually β WebLite DSL + Try-It gives you the cleanest workflow youβve seen.
β¨ All from a .wl file.
Would love to hear your feedback, ideas, or contributions!
Letβs make the web more readable, one YAML block at a time. π
Top comments (0)