News for hackers. Stuff that matters.
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by dhawalhs on Thursday April 19, 2012 @08:42AM (#3862651)
I did something similar with a resume template [1] where instead of mustache I use angular. The problem with a purely client side solution is that it doesn't sit well with search engines. You would still need to figure out a way send html from your server at least to the search engines if you want to be indexed.

[1] https://github.com/dhawalhshah/modern-resume

Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by StavrosK on Thursday April 19, 2012 @09:09AM (#3862764)
What do you mean? Why? What problem do search engines have indexing static content? I've never heard of anything like this before.
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by Jasber on Thursday April 19, 2012 @09:34AM (#3862885)
I think he means for the dynamically rendered parts, like "GitHub Watchers".
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by StavrosK on Thursday April 19, 2012 @09:51AM (#3862963)
Oh, right. I read some comments below and figured that it takes JSON and dynamically renders the template client-side, which seems very unnecessary. Why not just generate HTML? Does Jekyll work that way too?
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by laktek on Thursday April 19, 2012 @10:26AM (#3863128)
Punch generates static HTML pages using Mustache and JSON, which can be served from a server. Apart from that Punch's renderer can also be used on client-side to render dynamic content. This is elaborated with an example, in the blog post.
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by dhawalhs on Thursday April 19, 2012 @10:37AM (#3863194)
Sorry, I misinterpreted what Punch actually is. Maybe you could elaborate in "What is Punch" section that it uses node.js to generate HTML pages?
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by laktek on Thursday April 19, 2012 @10:57AM (#3863296)
Thanks for the suggestion. I'll update "What is Punch" section with more elaboration.
Re:Show HN: Punch - A Fun and Easy Way to Build Modern Websites by antidaily on Thursday April 19, 2012 @12:06PM (#3863653)
And include a picture of a cat.