Commit Graph

237 Commits

Author SHA1 Message Date
ekatek
c5bc843816 bring README.md files up to 1.0.3 compatibility
Fill in all packages without README.md files with a short
README.md mentioning that this is an internal Meteor package.

Break up the top paragraph of a couple of existing README.md
files to be proper long description.

There is more work to do here, involving line wrapping and the like.
2015-01-20 12:21:35 -08:00
Slava Kim
fcf8f6616d Set the language in Blaze's readme's markdown 2014-12-21 18:00:13 -08:00
David Glasser
6b204ca73a Bump package versions for 1.0.2 2014-12-19 10:31:59 -08:00
David Glasser
73b809c122 Bump versions for 1.0.2. 2014-12-11 22:44:41 -08:00
David Glasser
0ed8a9b32d bump package versions for a test release 2014-12-10 14:50:11 -08:00
David Glasser
6ea8443f30 Update calls to addFiles, onUse, and onTest 2014-12-09 20:18:31 -08:00
David Greenspan
ab92f117ae Expand fix for #3130
If you Blaze.remove a View that is a template rendered by Blaze.renderWithData, or included with an implicit “with” as in `{{> myTemplate someData}}`, Blaze will now remove the DOM of the template, and also remove the implicit “with” (in both cases).

As background, Blaze.remove only works on Views that were attached directly under a DOM element, not inside another View.  Blaze.render always attaches the resulting View directly under a DOM element, but Blaze.renderWithData creates a “with” View around the template View.  Previously, you could Blaze.remove the “with” View (which is returned by renderWithData), but if you got access to the template’s View some other way and tried to remove it directly, nothing would happen.  Now, the correct thing happens (the View is destroyed and the DOM is removed).

In the future, we should consider whether Blaze.remove should work on arbitrary Views, not just Views attached under a DOM element.
2014-12-09 13:17:12 -08:00
Slava Kim
918a9e0a6b Use a special flag to mark when Blaze views have..
autogenerated parents those need to be gc'd with their children.
Should help with #3130
2014-12-08 16:38:01 -08:00
David Greenspan
3aadefa71d History.md and docs tweaks 2014-12-08 14:01:03 -08:00
Mitar
d6fd5c21bc Added tests and documentation. 2014-12-07 13:30:38 -08:00
Mitar
fda7524ff8 Default for Template.parentData set to 1. 2014-12-07 13:08:04 -08:00
David Glasser
de5f68cf70 bump all versions (due to source-map upgrade) 2014-11-25 09:06:26 -08:00
Slava Kim
00d6682e23 Docs correction: DOMNode -> DOMElement
Because CSS selectors match only elements and not nodes
2014-11-04 16:21:55 -08:00
Slava Kim
44832cbbdc Add return types and properties types in JSDoc to a lot of methods 2014-11-02 02:45:17 -08:00
Emily Stark
cb54ae18fb Merge branch 'master' into devel
Conflicts:
	History.md
	examples/localmarket/.meteor/release
	examples/localmarket/.meteor/versions
	packages/stylus/README.md
	tools/compiler.js
	tools/package-client.js
	tools/tests/old/app-with-private/.meteor/versions
	tools/tests/old/app-with-public/.meteor/versions
	tools/tests/old/empty-app/.meteor/versions
2014-10-28 10:42:30 -07:00
Sashko Stubailo
ab22135543 Merge remote-tracking branch 'origin/readmes' into devel
Conflicts:
	docs/client/full-api/packages/fastclick.html
	docs/client/full-api/packages/stylus.html
	docs/client/packages/stylus.html
	packages/blaze/README.md
	packages/spacebars-compiler/README.md
	packages/stylus/README.md
2014-10-28 09:50:07 -07:00
Geoff Schmidt
11400a5976 Blaze readme! 2014-10-28 09:30:03 -07:00
Emily Stark
b4c10d8f61 bump package versions 2014-10-28 02:49:54 -07:00
David Greenspan
5cab3e975d Link from Blaze README to project page 2014-10-27 13:15:49 -07:00
David Greenspan
180ef5408a Blaze READMEs 2014-10-27 12:57:16 -07:00
Emily Stark
827b206c02 bump package version numbers for 1.0-rc.0 2014-10-17 16:10:40 -07:00
Nick Martin
619faab29f fix another typeof 2014-10-13 18:04:14 -07:00
Rahul
bd9dcf9643 Fix the typeof check
Encountered this bug when I tried to update an app that was generating Blaze warnings about the deprecated old-style helper to a 0.9.4 RC. The problem is that the type of the string `'Log'` is being checked rather than the value of the `Log` variable, which obviously returns true, and then the code breaks on the `&& Log` check, which is undefined.
2014-10-13 18:00:25 -07:00
Sashko Stubailo
36da5aecb4 Make all version numbers not have rc 2014-10-13 14:09:37 -07:00
Sashko Stubailo
698fbedb10 Bump all of the version numbers to rc.0 2014-10-07 17:10:48 -07:00
Sashko Stubailo
1e53f6b598 Bump all version numbers again after cherry-picking unipackage fix 2014-10-01 17:06:57 -07:00
Sashko Stubailo
0129c3f5ac Bump all of the version numbers again, to republish with the unipackage.json fix 2014-10-01 15:43:05 -07:00
Sashko Stubailo
eecc272e4a Bump every single package version number due to a change in compilation 2014-09-29 23:44:50 -07:00
ekatek
dd7635af6e merging from master 2014-09-25 19:45:48 -07:00
ekatek
bab557d49b incrementing package versions for a clean release 2014-09-25 18:34:34 -07:00
David Greenspan
22845b6f11 Port spacebars-tests to new-style helpers 2014-09-24 22:02:57 -07:00
David Greenspan
e8ebfe8aae First cut of deprecating old helper syntax
with back-compat.

The “old-style” syntax is `Template.foo.bar = …` instead of `Template.foo.helpers({bar: …})`.

Properties of back-compat to test:  You can replace an old-style helper (overwrite it).  You can delete an old-style helper.  We don’t have to support these capabilities, but we used them both in our test code, so apps probably do it too.

We print a deprecation once per helper.  This leads to a lot of warnings!  It’s helpful for porting, though developers who for some reason don’t want to port yet may want a way to disable them.

`spacebars-tests` pass.
2014-09-24 18:52:54 -07:00
David Greenspan
fe5c61104f Fix falsy helpers (like 0) 2014-09-24 17:02:20 -07:00
ekatek
220cc69e31 package versions incremented 2014-09-19 21:16:14 -07:00
David Greenspan
e7cf040177 Rename {{> UI.*}} to Template; remove UI uses
Rename inclusion macros (with back-compat) to: Template.dynamic, Template.contentBlock, Template.elseBlock.

Update all uses and mentions of UI in the repo, unless they are there for back-compat or testing reasons.

To do: Run unit tests.  Update docs for UI.dynamic.  Document Template.contentBlock and Template.elseBlock.
2014-09-17 17:24:25 -07:00
Justin SB
8fda0a0e1b Fix typo 2014-09-11 09:34:46 -07:00
Sashko Stubailo
6f829b32a9 Merge branch 'devel' into jsdocfinal
Conflicts:
	docs/client/api-box.js
	docs/client/api.html
	docs/client/data.js
	docs/client/nameToId.js
	docs/client/names.json
2014-09-05 18:43:20 -07:00
Emily Stark
402f4f656c Merge pull request #2511 from waitingkuo/blaze-error-message
mentions Blaze.render instead of UI.render in the error message
2014-09-05 17:12:56 -07:00
Sashko Stubailo
ef14f531ae Fix some small errors based on doc diff script 2014-09-05 11:52:59 -07:00
Sashko Stubailo
586b6e2712 Auto document a lot more things 2014-09-04 21:42:03 -07:00
Sashko Stubailo
1402fdd3f6 Document all Template and Blaze methods with autoApiBox and fix links 2014-09-04 19:29:58 -07:00
Sashko Stubailo
1dd43672d6 Move most of Blaze docs to autoApiBox 2014-09-04 19:20:39 -07:00
Avital Oliver
c23408bdd7 versions for 0.9.1 2014-09-04 15:41:39 -07:00
waitingkuo
d1e048c412 mentions Blaze.render instead of UI.render 2014-09-03 16:55:09 +08:00
Avital Oliver
808c90e3db Bump rc versions on packages 2014-09-01 00:16:00 -07:00
David Greenspan
e4c1e18392 Fix back-compat typo 2014-08-29 16:29:45 -07:00
David Greenspan
c21f49c6e3 Back-compat for template-internal API calls 2014-08-29 16:20:42 -07:00
Avital Oliver
18c917b44f Oops. Bump blaze to a new major version 2014-08-28 11:35:30 -07:00
Avital Oliver
864fffc9e9 Bump package versions in preparation for 0.9.1-rc0 2014-08-28 11:00:35 -07:00
David Greenspan
1dedd89387 Eliminate UI from docs; add some API to Template!
By choosing names like Template.registerHelper(…) and Template.instance() (instead of Blaze), we can separate the “Templates” section and the “Blaze” section of the docs.
2014-08-28 04:11:25 -07:00