sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 343 forks source link

Output layout info to terminal #208

Closed cfjedimaster closed 5 years ago

cfjedimaster commented 10 years ago

In the Current doc page (http://harpjs.com/docs/development/current), the EJS example has this:

<%- current.source == 'index' ? 'active' : '' } %>

The } at the end is invalid. This occurs twice in the code sample.

silentrob commented 10 years ago

Wow, you are on fire this morning. Thank you, thank-you!

cfjedimaster commented 10 years ago

Yeah, well, you didn't see me spend 20 minutes wondering why a file wouldn't run the damn layout. Then I realize I had called it foo.html, not foo.ejs. sigh

silentrob commented 10 years ago

Humm, I wonder if we can catch that and throw a warning. The challenge would be using client-side ejs vs sudo-server side ejs

cfjedimaster commented 10 years ago

Actually - see my other bug. I'd love to get more verbose output in Terminal. In this example, I could imagine:

[info] Skipping layout as non-dynamic file.

On Mon, Jan 20, 2014 at 2:01 PM, Rob Ellis notifications@github.com wrote:

Humm, I wonder if we can catch that and throw a warning. The challenge would be using client-side ejs vs sudo-server side ejs

— Reply to this email directly or view it on GitHubhttps://github.com/sintaxi/harp/issues/208#issuecomment-32792133 .

Raymond Camden, Web Developer for Adobe

Email : raymondcamden@gmail.com Blog : www.raymondcamden.com Twitter: cfjedimaster