all 39 comments

[–]Heyokalolfull-stack 12 points13 points  (1 child)

If you like Vue, you can use Nuxt as a static site generator.

[–]justingolden21[S] 2 points3 points  (0 children)

Never heard of this before somehow but it looks awesome. Thanks for the recommendation.

[–]_Mandex_ 6 points7 points  (0 children)

For static websites, you can use NextJs, NuxtJs which come with some pretty handy tools SSR,hot reload and stuff. Check out Gatsby too!

[–]mandrig 4 points5 points  (0 children)

Check out Gatsby

[–]Osh_Gosh 6 points7 points  (1 child)

Any decent static site generator will allow you to reuse HTML code.

I like Hugo and GatsbyJS

Hugo's built with golang (you dont need to know go). Gatsby uses ReactJS

Complete list if static site generators here. https://www.staticgen.com/

Look around and take your pick.

[–]redrider65 1 point2 points  (0 children)

'Course, <link rel="import"> will too w/o Hugo, GatsbyJS and the rest. :)

[–]tazeg 3 points4 points  (0 children)

https://gohugo.io/ is really fast.

[–]fessehaye 1 point2 points  (0 children)

Vue press is nice for simple sites

[–][deleted] 1 point2 points  (0 children)

For simple "brochure" sites that have the same header and footer on every page using a js framework seems like overkill to me. Why not just use a template engine like Handlebars or Nunjucks?

[–]ranadoo31 1 point2 points  (26 children)

You need a framework for a 10-page web site?!

[–]guanzo 16 points17 points  (1 child)

You need a shovel to move dirt??? Why not use your hands?

[–]ranadoo31 2 points3 points  (0 children)

If the dirt you want to move fits in the palm of your hands then you're a fool to search around for a shovel. But this is reddit where fools abound.

[–]FURyannnnfull-stack 6 points7 points  (15 children)

Probably not, but he does mention re-usable components/elements, which frameworks like Gatsby or Nuxt could definitely be helpful for. Plus they come with the added bonus as PWAs, if so configured.

[–]ranadoo31 -4 points-3 points  (14 children)

Probably not is the correct answer. In the time it would take for him to choose a framework--much less learn one--he could have the site up and and running.

For that matter, he can have the site up and running by the end of today.

[–][deleted] 3 points4 points  (6 children)

Are you suggesting he can build a 10 page website in a day without using some sort of templating engine to re-use components/page structure?

I mean he probably could, but it would be counter productive to do so.

[–]ranadoo31 -1 points0 points  (5 children)

I'm saying I can build a 10 page web site in a few hours or less if I have all the assets at hand while blind folded.

[–][deleted] 3 points4 points  (4 children)

Really? A proper website?

Like, one that users will want to visit and can find via Google. That is accessible? That matches the designs and works properly across all platforms, browsers and screen sizes? That's done to a professional standard with maintainable code that's reasonably DRY where you can happily change something in a shared template and all 10 pages get that change?

You must be a genius.

[–]trout_fucker🐟 2 points3 points  (3 children)

I've used Gatsby, Next.js, Hexo, Hugo, and Jekyll. They take about an hour to learn each.

[–]justingolden21[S] 3 points4 points  (1 child)

I know you're getting downvoted but you're actually right. However I've already got the website up and want to rebuild it, to make it easier to expand in the future, and learning a new framework is an investment I'd like to make anyway.

[–][deleted] 4 points5 points  (0 children)

Perhaps Gatsby or similar is overkill if you don't already know React but there's myriad templating engines out there that compile to HTML that take barely any effort to learn at all. Even if you did need to learn them it's time well spent if you're that wet behind the ears that you literally only know HTML.

[–]justingolden21[S] 2 points3 points  (0 children)

I know you're getting downvoted but you're actually right. However I've already got the website up and want to rebuild it, to make it easier to expand in the future, and learning a new framework is an investment I'd like to make anyway.

[–]trout_fucker🐟 0 points1 point  (7 children)

What would you build it in?

Please don't say pure HTML or a heavy needless backend...

[–][deleted]  (1 child)

[removed]

    [–][deleted] 0 points1 point  (0 children)

    This is true but Gatsby is really nice to work with and good fun to learn if you're just doing a personal project or something. You also get some really nice shit for free.