linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 80 forks source link

Change pages/index.hbs to pages/index.us, screw up, no errors #237

Closed krainboltgreene closed 10 years ago

krainboltgreene commented 10 years ago

Here's my build details:

Running "common" task

Running "bower:install" (bower) task
>> Installed bower packages

Running "less:compile" (less) task
File generated/css/app.less.css created.

Running "emberTemplates:compile" (emberTemplates) task

Running "coffee:compile" (coffee) task
>> Destination (generated/js/app.coffee.js) not written because compiled files were empty.
>> Destination (generated/js/spec.coffee.js) not written because compiled files were empty.
>> Destination (generated/js/spec-helpers.coffee.js) not written because compiled files were empty.

Running "jshint:files" (jshint) task
>> 0 files linted. Please check your ignored files.

Running "jst:compile" (jst) task
>> Destination not written because compiled files were empty.

Running "concat_sourcemap:js" (concat_sourcemap) task
File "generated/js/app.js" created.

Running "concat_sourcemap:spec" (concat_sourcemap) task
File "generated/js/spec.js" created.

Running "concat_sourcemap:css" (concat_sourcemap) task
File "generated/css/app.css" created.

Running "copy:dev" (copy) task
Created 1 directories, copied 2 files

Running "images:dev" (images) task
Copying images to 'generated/img'

Running "webfonts:dev" (webfonts) task
Copying webfonts to 'generated/webfonts'

Running "pages:dev" (pages) task
generated/index.html generated from app/pages/index.hbs

Running "dev" task

Running "server" task
Proxying API requests to localhost:3000
Starting express web server in 'generated' on port 8000

Running "watch" task
Waiting...

Here's the file:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    {{#pkg}}
      <title>{{name}}</title>
    {{/pkg}}
    <meta name="description" content="<%= pkg.env.description %>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="<%= css %>">
  </head>
  <body>
    <!--[if lt IE 7]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><%= pkg.env.branding %></a>
        </div>
        <div class="navbar-collapse collapse">
          <form class="navbar-form navbar-right" role="form">
          <div class="form-group">
            <input type="text" placeholder="Email" class="form-control">
          </div>
          <div class="form-group">
            <input type="password" placeholder="Password" class="form-control">
          </div>
          <button type="submit" class="btn btn-success">Sign in</button>
          </form>
        </div>
      </div>
    </nav>

    <main class="container">
      <!-- Example content -->
    </main>

    <footer>
      <p>
        &copy; Company 2014
      </p>
    </footer>

    <script src="<%= js %>"></script>
    <script>
      (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
      function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
      e=o.createElement(i);r=o.getElementsByTagName(i)[0];
      e.src='//www.google-analytics.com/analytics.js';
      r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
      ga('create','UA-<%= pkg.env.analytics %>');ga('send','pageview');
    </script>
  </body>
</html>

The file I get when going to / is empty. Zero content.

searls commented 10 years ago

Just a hunch, but I think lineman probably doesn't support the hbs extension. It's probably looking for hb or handlebars. (AFK)

On Tue, Mar 25, 2014 at 6:29 AM, Kurtis Rainbolt-Greene notifications@github.com wrote:

Here's my build details:

Running "common" task
Running "bower:install" (bower) task
>> Installed bower packages
Running "less:compile" (less) task
File generated/css/app.less.css created.
Running "emberTemplates:compile" (emberTemplates) task
Running "coffee:compile" (coffee) task
>> Destination (generated/js/app.coffee.js) not written because compiled files were empty.
>> Destination (generated/js/spec.coffee.js) not written because compiled files were empty.
>> Destination (generated/js/spec-helpers.coffee.js) not written because compiled files were empty.
Running "jshint:files" (jshint) task
>> 0 files linted. Please check your ignored files.
Running "jst:compile" (jst) task
>> Destination not written because compiled files were empty.
Running "concat_sourcemap:js" (concat_sourcemap) task
File "generated/js/app.js" created.
Running "concat_sourcemap:spec" (concat_sourcemap) task
File "generated/js/spec.js" created.
Running "concat_sourcemap:css" (concat_sourcemap) task
File "generated/css/app.css" created.
Running "copy:dev" (copy) task
Created 1 directories, copied 2 files
Running "images:dev" (images) task
Copying images to 'generated/img'
Running "webfonts:dev" (webfonts) task
Copying webfonts to 'generated/webfonts'
Running "pages:dev" (pages) task
generated/index.html generated from app/pages/index.hbs
Running "dev" task
Running "server" task
Proxying API requests to localhost:3000
Starting express web server in 'generated' on port 8000
Running "watch" task
Waiting...

Here's the file:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    {{#pkg}}
      <title>{{name}}</title>
    {{/pkg}}
    <meta name="description" content="<%= pkg.env.description %>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="<%= css %>">
  </head>
  <body>
    <!--[if lt IE 7]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#"><%= pkg.env.branding %></a>
        </div>
        <div class="navbar-collapse collapse">
          <form class="navbar-form navbar-right" role="form">
          <div class="form-group">
            <input type="text" placeholder="Email" class="form-control">
          </div>
          <div class="form-group">
            <input type="password" placeholder="Password" class="form-control">
          </div>
          <button type="submit" class="btn btn-success">Sign in</button>
          </form>
        </div>
      </div>
    </nav>
    <main class="container">
      <!-- Example content -->
    </main>
    <footer>
      <p>
        &copy; Company 2014
      </p>
    </footer>
    <script src="<%= js %>"></script>
    <script>
      (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
      function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
      e=o.createElement(i);r=o.getElementsByTagName(i)[0];
      e.src='//www.google-analytics.com/analytics.js';
      r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
      ga('create','UA-<%= pkg.env.analytics %>');ga('send','pageview');
    </script>
  </body>
</html>

The file I get when going to / is empty. Zero content.

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/237

jayharris commented 10 years ago

Agreed. And verified. .hg, .handlebar, and .handlebars are supported, but not .hbs.

krainboltgreene commented 10 years ago

What do I have to do in order to get this going for templates/ as well?

searls commented 10 years ago

@krainboltgreene ".hbs" extensions already worked with the templates/ directory. Just verified it.

searls commented 10 years ago

Here's a screen of an hbs file in the vanilla lineman project:

screen shot 2014-03-27 at 13 34 45

krainboltgreene commented 10 years ago

That looks like you generated it without the lineman-ember plugin, because it wouldn't be doing this["JST"].

On Thu, Mar 27, 2014 at 12:35 PM, Justin Searls notifications@github.comwrote:

Here's a screen of an hbs file in the vanilla lineman project:

[image: screen shot 2014-03-27 at 13 34 45]https://cloud.githubusercontent.com/assets/79303/2540690/21401568-b5d6-11e3-9e3f-5030f0508c7e.png

— Reply to this email directly or view it on GitHubhttps://github.com/linemanjs/lineman/issues/237#issuecomment-38835581 .

Kurtis Rainbolt-Greene, Hacker Software Developer 1631 8th St. New Orleans, LA 70115

searls commented 10 years ago

Right. This thread is on lineman core.  Ember templates aren't processable with plain old handlebars.

On Thu, Mar 27, 2014 at 3:07 PM, Kurtis Rainbolt-Greene notifications@github.com wrote:

That looks like you generated it without the lineman-ember plugin, because it wouldn't be doing this["JST"]. On Thu, Mar 27, 2014 at 12:35 PM, Justin Searls notifications@github.comwrote:

Here's a screen of an hbs file in the vanilla lineman project:

[image: screen shot 2014-03-27 at 13 34 45]https://cloud.githubusercontent.com/assets/79303/2540690/21401568-b5d6-11e3-9e3f-5030f0508c7e.png

— Reply to this email directly or view it on GitHubhttps://github.com/linemanjs/lineman/issues/237#issuecomment-38835581 .

Kurtis Rainbolt-Greene, Hacker Software Developer 1631 8th St. New Orleans, LA

70115

Reply to this email directly or view it on GitHub: https://github.com/linemanjs/lineman/issues/237#issuecomment-38847218