Skip to content

Commit

Permalink
improved docs wording introducing is_client/is_server (see meteor#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreensp committed May 25, 2012
1 parent a1ec393 commit 86e3eac
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/client/concepts.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 45,16 @@ <h2 id="structuringyourapp">Structuring your application</h2>

Files outside the `client` and `server`
subdirectories are loaded on both the client and the server! That's
the place for model definitions and other functions. Also, instead of
putting client and server functions in different directories, you can
use the [`is_client` and `is_server`](#meteor_is_client) variables
to isolate JavaScript to one or the other side.
the place for model definitions and other functions. Meteor provides
the variables [`is_client` and `is_server`](#meteor_is_client) so that
your code can alter its behavior depending on whether it's running
on the client or the server.

CSS files work just the same: the client will get a bundle with all
Any sensitive code that you don't want served to the client, such as code
containing passwords or authentication mechanisms, should be
kept in the `server` directory.

CSS files are gathered together as well: the client will get a bundle with all
the CSS in your tree (excluding the `server`
and `public` subdirectories).

Expand Down

0 comments on commit 86e3eac

Please sign in to comment.