Swig is an archived JavaScript template engine inspired by Django and Jinja syntax. It renders templates in Node.js and major web browsers and can integrate with Express applications. Developers can use inheritance, includes, variables, filters, loops, conditionals, and other familiar template constructs. Automatic output escaping helps produce safer HTML by default. The engine can be extended with custom filters, tags, and related extras to support application-specific behavior. It was designed to remain compact while offering a full set of server-side rendering conveniences. The repository was archived in 2018 and is no longer maintained, so it is best suited to legacy applications, migration work, or historical study.

Features

  • Node.js and browser rendering
  • Express framework compatibility
  • Object-oriented template inheritance
  • Filters, loops, and conditional logic
  • Automatic HTML output escaping
  • Custom filters and tag extensions

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Swig

Swig Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Get Started Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Swig!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

4 days ago