Replies: 3 comments
-
I'm a fan of this idea. I think a pug renderer would also be a good idea. |
Beta Was this translation helpful? Give feedback.
0 replies
-
this would be wonderful. |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes please. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
Pug templates are much more concise and quicker to implement compared to all of the requirements of HTML. Adding built-in support for pug templates in astro files would greatly reduce the size of source files.
Background & Motivation
I took on the task of creating this discussion after reading through this issue on GitHub and realizing that it hadn't been proposed here yet.
Users have reported the following:
"I've used Pug for years. I prefer it because life is too short to waste it closing opening tags (yes, I'm looking at you, HTML). Beyond the improved authoring experience, however, It also provides a higher signal-to-noise ratio when reading template code, which is more of a benefit than I think a lot of people may realize."
"If Astro offered first-class support for Pug in .astro files it may become the closest-to-perfect SSG in existence (just sayin')."
"It'd be nice if we could simply write Pug in place of Html in the way that .astro files current support Html."
Goals
Example
Beta Was this translation helpful? Give feedback.
All reactions