Software Alternatives, Accelerators & Startups

Pug VS Svelte

Compare Pug VS Svelte and see what are their differences

Pug logo Pug

Pug is a robust, elegant, feature rich template engine for Node.js

Svelte logo Svelte

Cybernetically enhanced web apps
  • Pug Landing page
    Landing page //
    2023-09-28
  • Svelte Landing page
    Landing page //
    2023-07-27

We recommend LibHunt Svelte for discovery and comparisons of trending Svelte projects.

Pug videos

Everything You Need to Know About Pugs - Characteristics and Care

More videos:

  • Review - Wolf Dog Reviews Food With Pug!
  • Review - Pug Dog Breed - Pros and Cons

Svelte videos

Svelte vs React vs Angular vs Vue

More videos:

  • Review - Why Svelte is the best JS "framework"
  • Review - Oh crap, here comes *another* JavaScript framework || SVELTE || Sveltejs

Category Popularity

0-100% (relative to Pug and Svelte)
Javascript UI Libraries
14 14%
86% 86
Development
100 100%
0% 0
JavaScript Framework
0 0%
100% 100
Tool
100 100%
0% 0

User comments

Share your experience with using Pug and Svelte. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare Pug and Svelte

Pug Reviews

We have no reviews of Pug yet.
Be the first one to post

Svelte Reviews

The 20 Best Laravel Alternatives for Web Development
The next of these Laravel alternatives is Svelte. It cuts through the complexity, snipping off any excess, pre-compiling its magic to keep your app lightweight without shedding any muscle. The end result? Lightning strikes in web performance.
20 Best JavaScript Frameworks For 2023
Svelte, unlike other JavaScript frameworks such as React or Vue.js, has no virtual DOM. Instead, you build components boilerplate-free in simple HTML, CSS, and JavaScript code. Svelte Compiler then compiles this code into small framework-free vanilla JavaScript modules during build time and surgically updates the DOM when the state changes. So unlike other traditional...
Comparing Vue.js to new JavaScript frameworks
Svelte, however, solves this performance problem at build time. This JavaScript framework is known for its speed and performance. It comes with a compiler that converts the Svelte framework code to vanilla JavaScript when running a build on an app.
Top 5 JavaScript Frameworks To Learn in 2021
Apart from speed and performance, Svelte has some exciting features like less boilerplate, a component-based model, SEO support, etc. However, Svelte hasn't got the attention it requires due to React. But with this rising trend, Svelte will be a good option to learn in 2021.
Source: enlear.academy
The Best JavaScript Frameworks You’re Not Using
Svelte works differently than some of the other front end libraries/frameworks that you may be familiar with. Your code is compiled at build time and this has big performance benefits. In fact, Svelte is one of the best performers in recent benchmarks.…
Source: jsreport.io

Social recommendations and mentions

Based on our record, Svelte seems to be a lot more popular than Pug. While we know about 355 links to Svelte, we've tracked only 20 mentions of Pug. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Pug mentions (20)

  • Building Vue Components With Pug & Stylus
    If you have a bit of Nodejs SSR background, you would already be accustomed to templating libraries like Pug, Handlebars, EJS, etc. If you’re from a PHP background you would be familiar with the Blade templating engine. These templating libraries basically help you render dynamic data from the backend on the frontend. They also help you generate markup with loops based on conditions. - Source: dev.to / about 2 months ago
  • Just Normal Web Things
    The right way to start is with HTML and motherfucking web site. https://motherfuckingwebsite.com/ Really. At this point this is what web sites should strive to be. Pug is a great way to write HTML by hand. I integrated it with GitHub Pages so pug sources get compiled to HTML and published when commits are pushed. Great experience. https://pugjs.org/ - Source: Hacker News / 9 months ago
  • Migrate Your Express Application to Fastify
    To illustrate the process of migrating from Express to Fastify, we have prepared a demo application. This application utilizes Express, Mongoose, and Pug to create a URL Shortener app as follows:. - Source: dev.to / 10 months ago
  • Simplify Form Development with Smarkform!
    Disclaimer: The markup of CodePen examples is still in Pug. However, you can view it compiled as HTML by opening the code tab menu and selecting "View compiled HTML" (But, by the way, if you are not already familiar with Pug Templates, I strongly advise you to check them out). Source: 11 months ago
  • Pugs eye popped out
    I'm sorry about your doggie, but you have the wrong subreddit. The Pug template engine https://pugjs.org/ is discussed here exclusively. Dogs are not discussed here. Source: about 1 year ago
View more

Svelte mentions (355)

  • 10+ UI Libraries for Svelte to Try in 2024
    Svelte is an open source JavaScript framework which gains popularity among web developers due to its fast client performance (compared to React and Vue), lightweight nature and ease of learning. Svelte, together with SvelteKit, makes web developers more productive allowing them to build projects faster, write code that is easier to understand and fix, and simply "code with joy". - Source: dev.to / 21 days ago
  • Getting started with React by building a Pokemon search application
    Also, I recently checked out Svelte and kinda like it, so will be doing a post like this next; stay tuned. - Source: dev.to / 4 days ago
  • Securing SvelteKit Apps with Keycloak
    Svelte and specifically, SvelteKit is an open source web framework that makes developing web applications easier. - Source: dev.to / 8 days ago
  • How to optimise React Apps?
    React has introduced measures like batching state updates, background concurrent rendering and memoization to tackle this. My opinion is that the best way to solve the problem is by improving their reactivity model. The app needs to be able to track the code that should be re-run on updating a given state variable and specifically update the UI corresponding to this update. Tools like solid.js and svelte work in... - Source: dev.to / about 1 month ago
  • Episode 24/13: Native Signals, Details on Angular/Wiz, Alan Agius on the Angular CLI
    Similarly to Promises/A+, this effort focuses on aligning the JavaScript ecosystem. If this alignment is successful, then a standard could emerge, based on that experience. Several framework authors are collaborating here on a common model which could back their reactivity core. The current draft is based on design input from the authors/maintainers of Angular, Bubble, Ember, FAST, MobX, Preact, Qwik, RxJS, Solid,... - Source: dev.to / about 1 month ago
View more

What are some alternatives?

When comparing Pug and Svelte, you can also consider the following products

Jinja2 - Jinja2 is a template engine written in Python.

Vue.js - Reactive Components for Modern Web Interfaces

Handlebars - Handlebars is a JavaScript template library that is, more or less, based on ...

React - A JavaScript library for building user interfaces

mustache - Mustache is a simple web template system with implementations available for ActionScript, C++...

Tailwind CSS - A utility-first CSS framework for rapidly building custom user interfaces.