Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
slantview
· 5y ago · 0 comments
Just because you do SSG doesn't mean you can't run _any_ javascript. This seems like a lot of work to just put a little JS button on the site.
Comments
[–]
throwanem
5y ago
You still need to inject values from the environment into the page source at build time, whether you're using Javascript or not. And if you're already doing that, why add Javascript on top when all you need is an anchor?
[–]
larsrh
5y ago
Exactly. I couldn't have solved this with JS only.