Commit Graph

81 Commits

Author SHA1 Message Date
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
bab557d49b incrementing package versions for a clean release 2014-09-25 18:34:34 -07:00
ekatek
220cc69e31 package versions incremented 2014-09-19 21:16:14 -07:00
Avital Oliver
3351183d8a package version bumps for 0.9.1.1 2014-09-06 14:27:26 -07:00
Avital Oliver
16ff10c96b Fix weak dependencies on renamed packages
The renames of packages ui -> blaze, deps -> tracker,
livedata -> ddp worked fine when a package or an app
dependened on the renamed packages. But if there was
a weak dependency (say `api.use('ui', {weak: true})`)
then:

(1) `Package.ui` would be null (since it's not in
    meteor-platform)
(2) Even if your app added 'ui' explicitly, the 'ui'
    package didn't export any symbols.
2014-09-06 13:05:19 -07:00
Avital Oliver
c23408bdd7 versions for 0.9.1 2014-09-04 15:41:39 -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
dd77f94035 Mark ui package as deprecated 2014-08-26 17:30:18 -07:00
David Greenspan
c93ac97c10 All-but-remove the ui package
Also improve info strings on blaze and ui

Not in this commit:
* Change all uses of `ui` package to use `blaze`
* Change all references to UI symbol to Blaze
* Change docs accordingly
2014-08-26 15:53:24 -07:00
David Glasser
996d347139 Merge branch 'devel' into packaging
Conflicts:
	docs/client/api.html
	docs/client/concepts.html
	docs/client/introduction.html
	meteor
	packages/html-tools/package.js
	packages/spacebars-common/package.js
	packages/webapp/webapp_server.js
	tools/bundler.js
2014-07-21 16:18:25 -07:00
ekatek
b9a714f028 ripping out internal, name and test from package.js files 2014-07-07 20:50:50 -07:00
Avital Oliver
bae3b16ebc Fix UI.render/UI.renderWithData/UI.insert 2014-06-30 20:22:24 -07:00
Avital Oliver
b21d87d142 Merge branch 'blaze-refactor' into blaze-views
Conflicts:
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
	packages/ui/package.js
	packages/ui/ui.js
2014-06-30 20:14:58 -07:00
David Greenspan
ab4bb8f993 Get rid of 3s/OLDSTYLE, start to exclude old code 2014-06-30 15:45:12 -07:00
Avital Oliver
e9e7237e8f Port UI.render, UI.renderWithData, UI.insert
UI.render and UI.renderWithData now return a DOMRange.
We've never quite documented what the return value of
these functions is, other than "you can pass it to
UI.insert", which is still true.

Also ported the tests by moving them into the spacebars-tests
package, so that they use a template rather than the
component/htmljs API. This has the added benefit of
making the tests less brittle to changes in internals.
2014-06-25 17:07:32 -07:00
David Glasser
5a85e2f24c Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/tests/login.js
	tools/unipackage.js
2014-06-23 14:48:21 -07:00
David Greenspan
095b3a26c6 Merge remote-tracking branch 'origin/devel' into blaze-refactor
Conflicts:
	packages/spacebars-tests/template_tests.js
	packages/ui/base.js
	packages/ui/dombackend.js
	packages/ui/dombackend_tests.js
	packages/ui/domrange.js
	packages/ui/domrange_tests.js
	packages/ui/each.js
	packages/ui/render.js
	packages/ui/render_tests.js
2014-06-23 10:56:55 -07:00
David Greenspan
690d6d5ab2 Remove a bunch of UI code
We leave some of the dead code files in the “ui” package, but take them out of “package.js”.  Some render tests now fail and maybe should be ported.  Some test files are removed because they just tested the old code.
2014-06-19 12:09:16 -07:00
Emily Stark
a6ecfb3825 Use $.trim in StyleHandler when String.trim isn't available.
(Safari 4)
2014-06-12 20:24:20 -07:00
David Greenspan
63b608a6a2 Port tests that were using old toHTML/materialize
Some tests were actually passing because they used old code!  Not anymore.

Create Blaze.toHTML(func) and Blaze.toText(func), like Blaze.render.  Generally you should always build the HTMLjs from inside the func — and our tests should always be wrapping test content in a function literal, not passing around unrendered HTMLjs trees — but if you’re just using tags and Isolate, it doesn’t matter.
2014-06-09 19:56:28 -07:00
David Greenspan
acb772c6cb Fix some usages of .extend(…) in tests
rename newblaze.js to template.js
2014-05-28 15:50:06 -07:00
David Greenspan
b8f7f1d093 Try out using Blaze in UI (break the world)
Basically all that works is an app with a static body :)
2014-05-01 00:13:07 -07:00
David Glasser
fbde0a00a7 Merge branch 'publish-packages' into library-refactor
Conflicts:
	packages/domutils/package.js
	packages/handlebars/package.js
	packages/htmljs/package.js
	packages/liverange/package.js
	packages/spark/package.js
	packages/universal-events/package.js
	tools/bundler.js
	tools/help.txt
	tools/packages.js
	tools/run-app.js
	tools/run-mongo.js
	tools/skel/.meteor/packages
2014-04-24 17:01:36 -07:00
David Greenspan
5c1cf98698 Modularize DomRange's event support in UI 2014-04-24 14:17:59 -07:00
David Greenspan
1e7b91feaa Fix some tests 2014-04-22 15:55:56 -07:00
David Greenspan
43d672bd6a Use refactored html.js in "old" ui-package Blaze
Some failing tests, which are hopefully mostly just tests of the modified code that need to be ported.

The main work was replacing the use of pseudo-attributes $special and $dynamic with the new HTML.Attrs(...) / array representation.  Some functions were also rewritten to use Visitors (`toJS`, old `toHTML`/`toText`/`evaluateAttributes`, `replaceSpecials` in the compiler, but not `optimize` yet or `materialize`).

Create the "blaze-tools" package to hold toJS and other functions that are useful for template parsers/compilers that need to read or generate JS.
2014-04-22 13:47:57 -07:00
David Greenspan
6454067e66 Make Blaze packages internal 2014-04-02 09:56:33 -07:00
David Greenspan
951b07c7c0 Support Spacebars.SafeString
...not just Handlebars.SafeString.

Test that helpers can depend on `instanceof Spacebars.kw` to detect options hash.
2014-02-05 23:06:18 -08:00
David Greenspan
a9c4dfaecd Implement new # and > calling convention
Both {{#foo}} and {{> foo}} are handled as follows:

- foo may be a template or a function returning a template
- if there are only keyword arguments, they are used to create a data context object (e.g. `x=1 y=2` becomes `{x:1, y:2}`)
- if there are any positional arguments, the arguments are treated as a nested helper call, meaning that the first one will be called on the rest (including keyword arguments) if it is a function

Rendering-wise, the template should only be re-rendered if foo is a function and it is invalidated to return a different value (though the "isolate" that would compare the new value to the old is not on this branch at the moment).

This change also makes the built-in block helpers (#if, #each, etc.) be functions (render macros) instead of components (though #each is still implemented with a component).  This avoids data context issues with #if and #unless (the new calling convention isn't really designed to support making something like #if).  It also should make generated code cleaner to call `UI.If` instead of including it as a component.
2014-01-24 13:22:11 -08:00
David Greenspan
15f56b4998 Make spacebars-compiler package; server-only
... unless you ask for it by name, in which case it can run on the client.

This means a smaller JS payload in production, without the HTML parser or Spacebars codegen.
2013-12-11 21:41:38 -08:00
David Greenspan
b20119775f rename package "html" -> "html-tools" 2013-12-11 20:14:26 -08:00
David Greenspan
87921cf178 Redo the HTML representation; needs debugging
Puts HTML.Tag, toHTML, and toJS in the "htmljs" package.
Introduces toText for textareas and attributes.
Changes dynamic attribute representation.
Instances of HTML.Tag, HTML.CharRef, etc. are now "instanceof".

Once this code seems to work, we'll move packages around further.
- "htmljs" is the runtime; can even take out "tocode.js"
- "html-tools" (new package) takes over for "html".

Then, port the tests.
2013-12-09 22:23:27 -08:00
David Greenspan
2e4199e9ee get rid of 2s in file names 2013-12-06 01:19:22 -08:00
David Greenspan
7dc913723d Destroy tons of dead code 2013-12-06 01:12:25 -08:00
Avital Oliver
e3b6743f59 Make {{#each}} partially work 2013-12-04 21:22:30 -08:00
David Greenspan
cf9fdafd27 make templates work (but not template tags) 2013-11-22 15:03:34 -08:00
David Greenspan
08d5a15995 start of HTML parsing 2013-11-07 01:11:17 -08:00
David Greenspan
09fa915fb0 cleaner reactive attributes; error reporting 2013-11-01 16:41:50 -07:00
David Greenspan
bfc0ce6798 DomBackend removal detection refactor and tests 2013-11-01 15:22:42 -07:00
David Greenspan
c2da2dac1d unit tests and a couple fixes 2013-10-29 18:25:18 -07:00
David Greenspan
066955252f initial commit 2013-10-28 18:37:55 -07:00
David Greenspan
1c37ac1a98 fix over-rendering by isolating comp.lookup
comp.lookup was establishing immediate dependencies, which was incorrect
2013-10-10 14:54:12 -07:00
David Greenspan
f8e3e5a7e2 remove broken tests and dead code 2013-10-07 11:16:58 -07:00
Avital Oliver
6ccb6862a9 backcompat for Handlebars.registerHelper 2013-10-03 13:44:46 -07:00
David Greenspan
af0aad1d45 created/rendered/destroyed callbacks
preserve no-op
2013-09-17 15:52:39 -07:00
David Greenspan
1879d14df4 #each uses observe-sequence, supports arrays 2013-09-13 12:27:58 -07:00