Code Monkey home page Code Monkey logo

emblem-rails's Introduction

Emblem::Rails is unmaintained

###Emblem rails is unmaintained - at this point I'd extremely strongly recommend using ember-cli instead of ember-rails, and slightly less strongly recommend not using emblem, as although the syntax is great it's turned out to not keep up with developments in hbs very quickly and as such using hbs has been a lot easier overall in my experience

Integrate Emblem.js with ember-rails

Installation

Add gem 'emblem-rails' to your application's Gemfile after ember-rails:

gem 'ember-rails'
gem 'emblem-rails'

# If you are using Ember 1.9, you will currently need to specify the master branch of 
# emblem source, and a fork of barber-emblem:

gem "emblem-source", github: "machty/emblem.js"

And then execute:

$ bundle

Now any templates ending in .emblem will be compiled as Ember-Handlebars templates. If you need to compile your Emblem templates with vanilla Handlebars, use the .raw.emblem extension.

Upgrading to the latest Emblem

This gem is only responsible for integrating Emblem.js with Rails. Any updates to the Emblem language itself can be pulled in via

$ bundle update emblem-source

emblem-rails's People

Contributors

alexspeller avatar machty avatar mikepack avatar tricknotes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emblem-rails's Issues

Remove strict ember-rails dependency.

Is it possible to not require ember-rails?

Im using emblem from Middleman and currently am duplicating the Titlt Template rather than using the one bundled with this gem, because ember-rails requires rails, which I dont need.

Any thoughts?

I hate to derail your flow, but could the rails specific stuff inherit from a gem that is just emblem-ruby the way emberscript-ruby does?

undefined method `register_engine' for nil:NilClass

When running:

rails generate ember:install --javascript-engine coffee

I get the following error:

$ rails generate ember:install --javascript-engine coffee
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/emblem-rails-0.2.2/lib/emblem/rails/engine.rb:7:in `block in <class:Engine>': undefined method `register_engine' for nil:NilClass (NoMethodError)
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:44:in `each'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:44:in `tsort_each_child'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:413:in `call'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `each'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `call'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
        from C:/Ruby22-x64/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
        from D:/projects/ember-crm/config/environment.rb:5:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:328:in `require'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/application.rb:328:in `require_environment!'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:128:in `generate_or_destroy'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:50:in `generate'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

Reproduced on:

  • a Windows 8 Enterprise

  • Ruby ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]

  • Rails 4.2.5

  • ember-rails 0.19.3

  • emblem-rails-0.2.2

    Any idea ? Thank you.

wrong number of arguments (1 for 2)

I have a brand now Rails application with ember. I have the following error:

ActionView::Template::Error (wrong number of arguments (1 for 2)):
     5:     meta charset="UTF-8"
     6:     meta name="viewport" content="width=device-width, initial-scale=1.0"
     7:     == stylesheet_link_tag    'application', media: 'all'
     8:     == javascript_include_tag 'application'
     9:     == csrf_meta_tags
    10: 
    11:   body
  app/views/layouts/application.html.slim:8:in `_app_views_layouts_application_html_slim__2376024801504411528_69818151276080'

with the following backtrace:

ember-handlebars-template (0.2.2) lib/ember/handlebars/helper.rb:32:in `global_template_target'
emblem-rails (0.2.2) lib/emblem/rails/template.rb:11:in `evaluate'
tilt (1.4.1) lib/tilt/template.rb:103:in `render'
...

So emblem-rails is calling the global_template_target method with only one parameter while ember-handlebars-template expect 2 parameters

Client Compiling

This gem appears to support either server or client compiling based on the setting of config.handlebars.precompile in the rails environment file.

However, if set to false for client compiling, the JS just crashes since Emblem is not defined.

Are we doing something wrong or should the documentation mention something about this? We are using this with Rails 4 & Ember.

Should the gem support a way to require a JS file (in a JS manifest) so that the client rendering works? We tried doing a javascript_include_tag on a minified emblem.js in our application layout, but it didn't work.

Thanks for any help.

can't find templates inside sub dirs

If if have the sidebar-footer.emblem inside templates/components/ dir, there is no problem. But if I move it into a subir templates/components/sidebar I get the error that says Assertion failed: You are looking for a sidebar-footer component in the Sidebar namespace, but the namespace could not be found

Can I put outlets in Rails template

Is there any ways to put emblem outlets in my rails erb?
(instead of defining in .js.emblem?

e.g.

# /rails_root/app/views/layouts/application.html.erb
<div id="sidebar">
{{outlet sidebar}}  
</div>

allow ember handle the sidebar content.

# javascripts/app/templates/application.js.emblem
= render 'menu' outlet="sidebar"

Rails 4

This doesn't seem to be working on rails 4. I've been using emblem-rails in several rails 3 apps without any issues, but on rails 4 the tempates are not found. There are no errors, just a blank page.

.emblem template not rendering

I've got an *almost vanilla install of ember-rails and I've just added emblem-rails.

I've got one template which renders when a handlebar: index.handlebars

When I rename to index.emblem nothing happens. No error, no render, nothing renders onto the page.

*The only gotcha with my solution is I'm doing this inside an Engine. However the handlebars render fine...?

Handlebars 2.0 error

Updating in ember >= 1.9.0 beta 3 requires handlebars 2.0. Updating to latest emblem-source (3.17 or 3.18 that are supposed to support handlebars) doesn't seem to work with it. Im getting errors module is not defined in every .emblem file.

My application.emblem Template Isn't Rendering

I'm having difficulty integrating Emblem with a Rails 4.1 app. My application.emblem template looks like this:

div
  h1 Application

When I navigate to my application, nothing happens. I don't see any console errors, and nothing shows up. If I change the name of application.emblem to application.handlebars and the content to HTML, it works perfectly.

I've thrown my application up on GitHub if you'd like to peruse the code. Thanks in advance!

Cannot read property '3' of undefined

Hello!
I'm trying to use emblem.js in my rails app (mountable engine) and it's crashing on anything other than simple html display. So, this will work:

p Hello world

but those not

p = "Hello world"
= model
each model
# ...

The error it gives me is:

Compiler said: TypeError: Cannot read property '3' of undefined

My env:

  • rails 4
  • ruby 2
  • ember 1.2.0
  • emblem-rails github-master

License missing from gemspec

RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.

via e.g.

  spec.license = 'MIT'
  # or
  spec.licenses = ['MIT', 'GPL-2']

Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can imagine, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.

There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!

Appendix:

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies

p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post about this project for more information.

cannot bundle with the latest version of this gem

Hello! I am unable to get bundler to install the latest version of emblem-rails and its kin. My Gemfile is as follows:

source 'https://rubygems.org'

gem 'rails', '~> 4.0.0'

gem 'mysql2', platform: :ruby
gem 'activerecord-jdbcmysql-adapter', platform: :jruby

gem 'pry-rails'

gem 'puma'
gem 'airbrake'

gem 'slim-rails'

gem 'sass-rails'

gem 'ember-rails'
gem 'emblem-rails'

gem 'coffee-rails'
gem 'uglifier'
gem 'therubyracer', platform: :ruby
gem 'therubyrhino', platform: :jruby

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

group :test, :development do
  gem 'factory_girl_rails'
  gem 'poltergeist'
  gem 'pry-rescue'
  gem 'rspec-rails'
end

group :test do
  gem 'fivemat'
end

and my Gemfile.lock is:

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (4.0.0)
      actionpack (= 4.0.0)
      mail (~> 2.5.3)
    actionpack (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    active_model_serializers (0.8.1)
      activemodel (>= 3.0)
    activemodel (4.0.0)
      activesupport (= 4.0.0)
      builder (~> 3.1.0)
    activerecord (4.0.0)
      activemodel (= 4.0.0)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.0)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activesupport (4.0.0)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    airbrake (3.1.12)
      activesupport
      builder
      json
    arel (4.0.0)
    atomic (1.1.10)
    barber (0.4.2)
      ember-source
      execjs
      handlebars-source
    barber-emblem (0.1.0)
      barber (>= 0.4.0)
      ember-template-compiler-source (>= 1.0.0.pre4.3)
      emblem-source
    builder (3.1.4)
    capybara (2.1.0)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      xpath (~> 2.0)
    coderay (1.0.9)
    coffee-rails (4.0.0)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0.beta, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.6.3)
    diff-lcs (1.2.4)
    ember-data-source (0.13)
      ember-source
    ember-rails (0.13.0)
      active_model_serializers
      barber (>= 0.4.1)
      ember-data-source
      ember-source
      execjs (>= 1.2)
      handlebars-source
      railties (>= 3.1)
    ember-source (0.0.8)
      handlebars-source (>= 1.0.0.rc3, < 1.0.0.rc4)
    ember-template-compiler-source (1.0.0.rc1.1)
      handlebars-source (= 1.0.0.rc3)
    emblem-rails (0.0.7)
      barber-emblem (>= 0.0.4)
      ember-rails (>= 0.9.2)
    emblem-source (0.3.0)
    erubis (2.7.0)
    eventmachine (1.0.3)
    execjs (1.4.0)
      multi_json (~> 1.0)
    factory_girl (4.2.0)
      activesupport (>= 3.0.0)
    factory_girl_rails (4.2.1)
      factory_girl (~> 4.2.0)
      railties (>= 3.0.0)
    faye-websocket (0.4.7)
      eventmachine (>= 0.12.0)
    fivemat (1.2.1)
    handlebars-source (1.0.0.rc3)
    hike (1.2.3)
    http_parser.rb (0.5.3)
    i18n (0.6.4)
    interception (0.3)
    json (1.8.0)
    libv8 (3.11.8.17)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    method_source (0.8.1)
    mime-types (1.23)
    mini_portile (0.5.1)
    minitest (4.7.5)
    multi_json (1.7.7)
    mysql2 (0.3.11)
    nokogiri (1.6.0)
      mini_portile (~> 0.5.0)
    poltergeist (1.3.0)
      capybara (~> 2.1.0)
      faye-websocket (>= 0.4.4, < 0.5.0)
      http_parser.rb (~> 0.5.3)
    polyglot (0.3.3)
    pry (0.9.12.2)
      coderay (~> 1.0.5)
      method_source (~> 0.8)
      slop (~> 3.4)
    pry-rails (0.3.1)
      pry (>= 0.9.10)
    pry-rescue (1.1.1)
      interception (>= 0.3)
      pry
    puma (2.3.1)
      rack (>= 1.1, < 2.0)
    rack (1.5.2)
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (4.0.0)
      actionmailer (= 4.0.0)
      actionpack (= 4.0.0)
      activerecord (= 4.0.0)
      activesupport (= 4.0.0)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.0)
      sprockets-rails (~> 2.0.0)
    railties (4.0.0)
      actionpack (= 4.0.0)
      activesupport (= 4.0.0)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.1.0)
    rdoc (3.12.2)
      json (~> 1.4)
    ref (1.0.5)
    rspec-core (2.14.0)
    rspec-expectations (2.14.0)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-mocks (2.14.1)
    rspec-rails (2.14.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      railties (>= 3.0)
      rspec-core (~> 2.14.0)
      rspec-expectations (~> 2.14.0)
      rspec-mocks (~> 2.14.0)
    sass (3.2.9)
    sass-rails (4.0.0)
      railties (>= 4.0.0.beta, < 5.0)
      sass (>= 3.1.10)
      sprockets-rails (~> 2.0.0)
    sdoc (0.3.20)
      json (>= 1.1.3)
      rdoc (~> 3.10)
    slim (2.0.0)
      temple (~> 0.6.5)
      tilt (~> 1.3, >= 1.3.3)
    slim-rails (2.0.1)
      actionpack (>= 3.0, < 4.1)
      activesupport (>= 3.0, < 4.1)
      railties (>= 3.0, < 4.1)
      slim (~> 2.0)
    slop (3.4.5)
    sprockets (2.10.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.0)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    temple (0.6.5)
    therubyracer (0.11.4)
      libv8 (~> 3.11.8.12)
      ref
    thor (0.18.1)
    thread_safe (0.1.0)
      atomic
    tilt (1.4.1)
    treetop (1.4.14)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.37)
    uglifier (2.1.1)
      execjs (>= 0.3.0)
      multi_json (~> 1.0, >= 1.0.2)
    xpath (2.0.0)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  activerecord-jdbcmysql-adapter
  airbrake
  coffee-rails
  ember-rails
  emblem-rails
  factory_girl_rails
  fivemat
  mysql2
  poltergeist
  pry-rails
  pry-rescue
  puma
  rails (~> 4.0.0)
  rspec-rails
  sass-rails
  sdoc
  slim-rails
  therubyracer
  therubyrhino
  uglifier

Emblem templates then of course do not work, because emblem-source 0.3.0 is not compatible with handlebars-source 1.0.0.rc3 (as discussed in machty/emblem.js#79). Attempting to force gem 'emblem-rails', '~> 0.1.1' results in the following goodness:

$ bundle update
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "handlebars-source":
  In Gemfile:
    emblem-rails (~> 0.1.1) ruby depends on
      handlebars-source (< 1.0.0.rc4, >= 1.0.0.rc3) ruby

    emblem-rails (~> 0.1.1) ruby depends on
      handlebars-source (1.0.0)
$

Any ideas?

Possible to use Rails View helpers?

Is it possible to use Rails view helpers with emblem-rails?

This might seem odd since Emblem is compiling .js files... but it would be helpful (such as using some of the bootstrap-rails helpers, or declarative authorization)

Allow for templates root to be set

Handlebars has a option to set the templates root as such:

config.handlebars.templates_root = 'frontend/templates'

It would be nice if emblem had something similar. Maybe:

config.emblem.templates_root = 'frontend/templates'

Built-in helper for asset pipeline?

It would be great if, similar to sass-rails, some helpers were provided to deal with the asset pipeline, rather than having to create .emblem.erb files. eg.

img src=assetPath('my-image.png')

rather than

img src=<%= asset_path('my-image.png') %>

Is this something you would consider adding/accepting a pull request for, and if so, what would you want the syntax to look like?

Ember Action / Events Shorthand renders deprecated template logic

using the shorthand example

label doubleClick="editTodo" = title

it generates

<label {{action editTodo on="doubleClick"}}>{{title}}</label>

which in turn results in this message in the console log

"DEPRECATION: Using a quoteless parameter with {{action}} is deprecated. Please update to quoted usage '{{action "editTodo"}}'.

I'm not sure if it's something you guys are aware of, but thought I should bring it to your attention just in case it's not. :)

git pull of new .emblem files not compiled

Steps we just went through:

  1. Dev #1 makes a bunch of emblem templates. They work. Oh joy!
  2. Dev #1 commits the stuff that works.
  3. Dev #2 pulls, bundles, restarts.
  4. Dev #2 gets uncompiled emblem files. Sad face emoticon!
  5. Dev #2 in desperation commits a trivial edit to the .emblem files, saves.... and they work! Mitigated joy!

Any word on emblem rails working with ember-1.10.0

Wondering if anyone has got an ember rails application running with ember-1.10.0 ??

I have tried just about every combination of things to get this working, but no luck.
But if anyone has had success that I would be really thrilled to hear how they did it.

Dependency issues with upgrading to Ember 1.0.0.rc6

I'm not sure there's a lot that can be done about this just yet, but in case anyone else is trying to upgrade Ember to rc6, I just wanted to note for the community that it is currently difficult to do so. The reason for this is that Ember rc6 depends on Handlebars 1.0.0, but Handlebars 1.0.0 hasn't (yet) been released as a gem, and Barber, which Emblem Rails depends on for precompiling templates, therefore can't use anything newer than the latest gem release of Handlebars (1.0.0.rc4). I would recommend that other people using Emblem not upgrade until an updated Handlebars gem has been released.

See here for confusion about releasing an updated version of Handlebars:
handlebars-lang/handlebars.js#548

See also the current Barber dependencies on Handlebars:
https://github.com/tchak/barber/blob/master/barber.gemspec

I personally found this confusing because it is possible to install Handlebars 1.0.0 from source in your application, which will handle the Ember dependency, but unfortunately won't do anything to handle the Barber dependency.

Update rubygems version

Mind bumping the version on rubygems? Looks like it's out of sync with the most recent changes to master. Thanks!

how to use with digest assets?

I have an image in app/assets/images/logo.jpg, how can I reference it (while still using digests)? In sass-rails I can use the Asset Helpers ...whats the prescribed method here?

the brute force method would be:

img src="<%= image_path('logo') %>"

is there any syntactic sugar that can be added to make this nicer?

Pre-compilation issue?

[Probably related to #32, but I'm using the advised

gem "emblem-source", github: "machty/emblem.js"
gem "barber-emblem", github: "simcha/barber-emblem"
``` ]

I'm getting a weird problem here. I'm totally new to ember, and rails as well, but trying to dive in.

At the moment, I'm getting `Uncaught SyntaxError: Unexpected identifier` on all my js templates. When I look at them in chrome's web inspector, these files have content like the following:

Ember.TEMPLATES["application"] = Ember.Handlebars.template([object Object]);


original file: templates/application.js.emblem (compiles to the above)

nav.navbar.navbar-inverse.navbar-fixed-top
.container
.navbar-header
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href="#" Home
#navbar.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a href="#Family" Family
li
a href="#Feed" Feed
li
a href="#Library" Library

.container
main
= outlet

footer


Which looks like some tool in the chain isn't printing out the object properly.

DEBUG: -------------------------------
DEBUG: Ember : 1.9.1
DEBUG: Ember Data : 1.0.0-beta.14.1
DEBUG: Handlebars : 2.0.0
DEBUG: jQuery : 1.11.1
DEBUG: -------------------------------


I'm using  ember-rails v 0.16.1, emblem-rails v0.2.2, emblem-source v0.3.18, coffee-rails v4.0.1 and coffee-script v2.3.0.

Not sure if this is an emblem-rails bug, but I figured I'd start here.

Let me know if I can provide more info to track this down.

application.html.emblem not recognized

Hey @alexspeller, not sure if you'll remember, but after talking to you on IRC yesterday I figured out the problem I was having - a handlebars template was expected.

Once I added an inline template, the test ran, but the template broke - the handlebars syntax wasn't recognized by slim, the templating engine we were using.

Looking for a solution I learned of Emblem, and understood it was like slim, only it plugged with Ember seamlessly.

So i went ahead and installed it, and ported the slim templates to Emblem's syntax. But when I try to get the app running .emblem isn't recognized:

Missing application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee]}. 

Possible Rails 4 issue

I found an error:

"Emblem is not defined."

What I have on my Gemfile:

gem 'ember-rails'
gem 'ember-source'
gem 'emblem-rails'

I figured it was looking for Emblem. I downloaded and included it on application.js.coffee

#= require ember
#= require ember-data
#= require emblem

I thought there was no need to do that. Probably there should be no need to do that as it is not on the README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.