Git Product home page Git Product logo

website's Introduction

website's People

Contributors

acorncom avatar alonski avatar amyrlam avatar bmac avatar chrisrng avatar fivetanley avatar igort avatar jayjayjpg avatar jenweber avatar kennethlarsen avatar locks avatar lzcabrera avatar machty avatar melsumner avatar mi6u3l avatar mixonic avatar patr1ck avatar perlun avatar rwjblue avatar sandraor avatar sivakumar-kailasam avatar stefanpenner avatar tomdale avatar trek avatar tricknotes avatar twokul avatar tylerturdenpants avatar wagenet avatar wifelette avatar wycats 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  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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

website's Issues

Documentation about child views is incorrect.

The example shown on the documentation page about setting child view templates is incorrect in versions > 0.9.8.1

Here's a JSFiddle for 0.9.8.1
The latest version of ember
A working example with the latest version of ember

The example template should be this:

<script type="text/x-handlebars" data-template-name="info">
  <b>Posts:</b> {{view.posts}}
  <br>
  <b>Hobbies:</b> {{view.hobbies}}
</script>

I would generate a pull request for the documentation change, but don't feel confident enough that I understand all of the terminology properly.

A duplicate of this bug exists here: emberjs/ember.js#988 (comment)

Home Page Example

Can you add a closing tag to the list?

<h1>People</h1>

<ul>
{{#each peopleController}}
  <li>Hello, <b>{{fullName}}</b>!</li>
{{/each}}
</ul>

Also the home page uses ember-data. Is that going to be officially integrated into ember? Otherwise can you change that so it looks more like...

App.Person = Ember.Object.extend({
  firstName: null,
  lastName: null,
  fullName: function() {
    return this.get('firstName') +
           " " + this.get('lastName');
  }.property('firstName', 'lastName')
});

App.peopleController = Em.ArrayController.create({
  content: [App.Person.create({firstName:"John", lastName: "Smith"})]
});

I just started looking at Ember this weekend and that example confused me for longer than I really care to admit. I'm guessing there is a transition going on, but until it does it would be great it the examples worked with the source out of the starter kit.

License

What is the license of the middleman helpers in config.rb?

Better `forEach` example

Right now the forEach section suggests that you do:

var array = [1,2,3];

array.forEach(array.removeObject, array);

However, this is a poor example since the array will actually not be emptied completely. This isn't a bug, but it is confusing.

It does not seem clear enough where to start to get started

Hi,
I've decided yesterday that it was time for me to dive in Ember.js. To be honest, I was not sure where to start.

The starter kit is way too basic for what I needed. The examples? Yeah, maybe better, but I wanted to take a look at a some guide and doc before to have a high-level understanding of the principles you are building Ember on.

I've started to read the docs, then hopped into the guides. I think I should have done the opposite maybe. You are also talking of ember-data in a guide without having any explanation of what it is which could be confusing for someone that never heard anything from Ember before.

Doc and guides doesn't seem to be presented in a logical order (I might be totally wrong), or at least it is lacking some "hey, start here, and then read that" indications. Maybe switching "Docs" and "Guides" in the menu would be a first step and then maybe add a Getting Started guide (there is one in PR #137, but I don't know if it still relevant as things are still changing before 1.0, which is just fine).

In the Guide page, maybe adding some short description of each guide and it's level and/or prerequisites would be a great idea?

Those are ideas, and might not the be the best approach either.

Let me know what you think of how to help newbies to get up to speed as fast as possible and still explain all that needs to be understood.

Thanks for all your hard work!

Easier to read Font family

Hi,

Font family chosen for the website makes it difficult to read. It would be great to change it.

BTW - Nice job with the new API website.

Thanks
Karl

bindAttr section of http://emberjs.com/documentation/ doesn't display the html attribute

The bindAttr documentation in my browsers (Ubuntu/Chrome and OS X/Safari) doesn't display the attribute. I went to the website project and checked the markdown source code, and it correctly displays the attribute via GitHub. Therefore, it looks like the intent is correct, and there is nothing I can do in a pull request. For some unknown reason, the website just isn't showing the attribute.

For example, the code example is missing the src attribute:

<img {{bindAttr ="logoUrl"}} alt="Logo">

It should have been rendering as:

<img {{bindAttr src="logoUrl"}} alt="Logo">

This is repeated in the isDisabled example, as well as in the next section, "Binding Class Names with {{bindAttr}}".

Ember Application Structure guide does not clarify how and when App.Router is instantiated

I'm trying to follow along with the Ember Application Structure guide, which describes how to subclass Ember.Router, however it doesn't specify how and when App.Router is instantiated.

Instead, the guide should note how and when App.Router is instantiated; specifically indicating whether the developer should instantiate an instance of it or if Ember will instantiate one instead.

It looks like calling App.initialize(); causes App.Router to be instantiated. This should probably be documented in this guide, or a mention in this of another guide that explains that it should be called.

Refiled from emberjs/ember.js#1104

using data-template-name not obvious from docs

Hey guys,

I'd suggest noting that using data-template-name, means the template is parsed and loaded in memory somewhere, but will have to be instantiated via javascript, and then appended to some element/view/container.

Peter

rails-tutorial Editing

I really like the flow of the rails-tutorial; I think it might be missing a couple of steps in getting the initial view to the homepage.

This section on loading the app is either missing some code, or I have done something wrong

  Photoblog.photosView = Ember.ContainerView.create({
    currentViewBinding: 'Photoblog.stateManager.currentState.view'
  });
  Photoblog.photosView.append();

If you can link me to the rails app repo that implements the guide, I'll help edit the tutorial... It could be beneficial to have a new ember dev go through the tutorial to see it work and test any rough spots.

cc/ @patr1ck @tomdale

Broken binding examples

There should be some mention in the Binding examples that they don't sync immediately.

I think either it should be mentioned or the examples should be updated.

MyApp.president = Ember.Object.create({
  name: "Barack Obama"
});

MyApp.country = Ember.Object.create({
  // Ending a property with 'Binding' tells Ember to
  // create a binding to the presidentName property.
  presidentNameBinding: 'MyApp.president.name'
});

MyApp.country.get('presidentName');
// undefined

See: emberjs/ember.js#423

Adding Ember.run.sync() to Bindings Example on the Website

Hi! A friend told me in the morning that he had problems
with the binding examples on the website, it would be
great if we can add some explanation to Ember.run.sync()

MyApp.president = Ember.Object.create({
  name: "Barack Obama"
});

MyApp.country = Ember.Object.create({
  // Ending a property with 'Binding' tells Ember to
  // create a binding to the presidentName property.
  presidentNameBinding: 'MyApp.president.name'
});

// This forces the bindings synchronization:
Ember.run.sync();

MyApp.country.get('presidentName');
// "Barack Obama"

exception when executing bundle exec rakep

I've checked out the repos as stated in the Readme. I then executed bundle and bundle exec rakep but I get the following error:


/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-3088a028f567/lib/rake-pipeline/middleware.rb:1:in `require': no such file to load -- rack (LoadError)
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-3088a028f567/lib/rake-pipeline/middleware.rb:1:in `<top (required)>'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-3088a028f567/bin/rakep:12:in `require'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bundler/gems/rake-pipeline-3088a028f567/bin/rakep:12:in `<top (required)>'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bin/rakep:19:in `load'
    from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/bin/rakep:19:in `<main>'

Anybody else ran into this?

Example of home page seems wrong

In the HTML snippet it shows '{{#each controller}}'.

Shouldn't that be '{{#each APP.peopleController}}' or '{{#each APP.peopleController.content}} ?

Routing Guide seems Backwards

After some amount of pain involved in getting an Ember.Router working, I think the approach here is wrong. Starting at the templates and working backward to the router is, uh, backward.

A more natural point of introducing the concept is the Ember.Router or URL de-structuring. Based on @wycats' gists, it seems like the focus should be on serialization of state (i.e. the Router). The templates and references to {{outlet}} come too early.

If readers were to be made to what the route was, and that some assumptions were made in terms of naming and view, and that based on those assumptions a given template file was going to be used, then I think the message of this document would come across more clearly.

This may just be my particular learning style, but i found myself acking the source a bit too often for this guide to merit a "done" status. Any complaints with my taking a stab at it from another direction?

Steven

`rake preview` fails

I'm getting the following error in my ember-website clone:

$ bundle exec rake preview
Generating docs data from /home/ubuntu/src/ember.js... error: --------------------------------------------------------------------------
error: An uncaught YUIDoc error has occurred, stack trace given below
error: --------------------------------------------------------------------------
error: 
TypeError: Cannot set property 'module' of undefined
    at [object Object].<anonymous> (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/lib/docparser.js:493:29)
    at [object Object].<anonymous> (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/lib/docparser.js:1251:40)
    at Array.forEach (native)
    at Function.<anonymous> (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/node_modules/yui/yui-nodejs/yui-nodejs.js:2397:20)
    at f (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/node_modules/yui/oop/oop-min.js:7:221)
    at [object Object].each (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/node_modules/yui/oop/oop-min.js:7:1206)
    at [object Object].processblock (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/lib/docparser.js:1223:15)
    at [object Object].<anonymous> (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/lib/docparser.js:1307:26)
    at Array.forEach (native)
    at Function.<anonymous> (/home/ubuntu/src/ember.js/docs/node_modules/yuidocjs/node_modules/yui/yui-nodejs/yui-nodejs.js:2397:20)
error: --------------------------------------------------------------------------
error: Node.js version: v0.6.12
error: YUI version: 3.6.0
error: YUIDoc version: 0.3.22
error: Please file all tickets here: http://github.com/yui/yuidoc/issues
error: --------------------------------------------------------------------------
rake aborted!
No such file or directory - /home/ubuntu/src/ember.js/docs/build/data.json

Tasks: TOP => preview
(See full trace by running task with --trace)

I'm honestly not sure what's causing it.

some code examples not displaying correctly on website

the bindAttr examples are not displaying correctly on the frontend documentation page (http://emberjs.com/documentation/)

under the header: "Binding Element Attributes with {{bindAttr}}"
2nd code block (and others)

when viewing in github it appears correctly:
https://github.com/emberjs/website/blob/master/source/docs/handlebars.md#binding-element-attributes-with-bindattr

and on the frontend the attribute name is missing
http://emberjs.com/documentation/#toc_binding-element-attributes-with-bindattr

New YUIDoc-based API Docs show the wrong version of Ember.Application docs

Ember.Application is declared in ember-runtime/lib/system/application.js to be usable for runtime-only apps, but most app use the definition here: https://github.com/emberjs/ember.js/blob/83542a629c214f1a9e89dcf8b9388e48ae2ba4e8/packages/ember-application/lib/system/application.js#L187

The docs for the latter definition are great, and should be included, but only the docs from the runtime version of Application are being built at the moment.

Add version number to Docs and API

It's unclear which version of Ember the Documentation and API apply to. I am assuming the current stable (1.0 pre as of writing this), but it would be good to know.

It may also be worth keeping the documentation for the older versions. Similar to Node.js documentation where the latest is always under the same URL but the older versions have a path like /v0.9.8.1/.

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.