Commit Graph

121 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
David Greenspan
e42ad696df Ban templates named after macros like “dynamic” 2014-09-18 17:34:56 -07:00
David Greenspan
855284559a Back-compat tests 2014-09-18 17:29:04 -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
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
ebff9b3bdf Unbreak the build 2014-08-11 15:39:40 -07:00
David Greenspan
307b9a9504 Make more Blaze calls private
Put underscores before:

ReactiveVar, InOuterTemplateScope, EventSupport, reportException,
wrapCatchingExceptions, DOMMaterializer, and HTMLJSExpander
2014-08-11 14:38:46 -07:00
David Greenspan
7ca944e665 UI.render/toHTML, TemplateWith, Blaze.toText
Move Spacebars.TemplateWith to Blaze._TemplateWith.  It is the official
way to give a template data, after all, but it’s a little too weird to
make public.  Use it in Blaze.renderWithData, even though it doesn’t
seem like it would make a difference.

Unify UI.render/renderWithData with Blaze.render, and add
toHTMLWithData.  Publicly, they take a Template or a View.
The View must be unrendered, of course.  If given a Template,
constructView will be called.  Privately, they take any HTMLJS
extended to be allowed to contain Templates and Views, except
null or undefined, or a function returning extended HTMLJS.
The “data” argument may be a function or a not, as in UI.With
(and unlike the old public UI.renderWithData).

Make Blaze.toText private (Blaze._toText).
2014-08-11 14:24:07 -07:00
David Glasser
f4eefa1f04 vbump rc5 2014-08-08 00:06:55 -07:00
David Glasser
5675d3e29a Merge branch 'packaging' into devel 2014-08-07 14:29:53 -07:00
Maxime Quandalle
19e0f116da Edit the TemplateTag comment
The `BLOCKCOMMENT` type was introduced in f68fe75
2014-07-30 23:03:14 +02: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
David Greenspan
750d2aa861 Fix compile output tests in Firefox 12 with Coffee 2014-07-10 14:02:14 -07:00
ekatek
b9a714f028 ripping out internal, name and test from package.js files 2014-07-07 20:50:50 -07:00
David Greenspan
734816c7d7 Cleaner codegen of attribute values 2014-07-01 10:57:46 -07:00
David Greenspan
f93a570d27 Fix compile_tests 2014-07-01 10:34:26 -07:00
David Greenspan
284529992e Fix UI.contentBlock data context 2014-07-01 10:25:48 -07:00
David Greenspan
0766b13ba8 Fix block helpers 2014-06-30 19:13:10 -07:00
David Greenspan
ab4bb8f993 Get rid of 3s/OLDSTYLE, start to exclude old code 2014-06-30 15:45:12 -07:00
David Greenspan
9dd5fac49c webapp_server works
This confirms that we can convert complicated templates (including #if, #each, and dynamic attributes) into HTML using Views.

Template#__lookup was moved to View#lookup, since webapp_server is an example of a case where we have lookup but no template!

Next steps: get rid of the “3” after some names, the OLDSTYLE flag, and dead code in the blaze package.  Then make Template features like events, `helper`, etc. work.
2014-06-30 15:36:33 -07:00
David Greenspan
bac6974298 Properly codegen reactive attributes 2014-06-30 15:05:35 -07:00
David Greenspan
85b80d3266 Implement lookup, more builtins
Move lookup to templates, not views!
2014-06-26 18:23:31 -07:00
David Greenspan
c01a9df8de Introduce OLDSTYLE flag to not break webapp
Making webapp_server work requires #if and #each that work with toHTML.  Don’t want to have to write that code just to be able to run client code again.
2014-06-26 15:54:40 -07:00
David Greenspan
ccfbb2910d Make HTML.Visitor stack traces better in Chrome 2014-06-24 00:27:34 -07:00
David Greenspan
87123cc63a Kill spacebars-common package
Now that Spacebars and SpacebarsCompiler are different symbols, it’s not necessary.
2014-06-23 15:13:00 -07:00
David Greenspan
0940e4dde8 Spacebars.include2 -> Spacebars.include 2014-06-21 18:21:50 -07:00
David Greenspan
99d6545d70 Spacebars.With2 -> Spacebars.With 2014-06-21 18:20:36 -07:00
David Greenspan
72d9cb9b90 Fix {{> content}} data context 2014-06-21 18:16:12 -07:00
ekatek
fb709c9563 remove versions files from core packages 2014-06-16 22:11:31 -07:00
David Glasser
c5e5305a3b Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/packages.js
2014-06-11 12:02:57 -07:00
David Greenspan
4e8472e970 Proper reactivity for calculated templates 2014-06-09 16:35:24 -07:00
David Greenspan
9108c5debd Match devel’s behavior for inclusion arg context 2014-06-09 14:02:46 -07:00
David Greenspan
1365e63ff8 Start to make custom block helpers work
UI.contentBlock
2014-06-09 12:18:48 -07:00
Emily Stark
4dc2cb6e31 Port UI.dynamic to blaze-refactor 2014-06-06 15:20:29 -07:00
Emily Stark
13d25197f5 Fix compiler output test again 2014-06-06 14:08:29 -07:00
Emily Stark
ba0770a908 Merge remote-tracking branch 'origin/devel' into blaze-refactor
Conflicts:
	packages/html-tools/tokenize.js
	packages/spacebars-compiler/package.js
	packages/spacebars-compiler/spacebars-compiler.js
	packages/spacebars-tests/template_tests.html
	packages/spacebars-tests/template_tests.js
	packages/spacebars/package.js
	packages/spacebars/spacebars-runtime.js
	packages/ui/domrange.js
	packages/ui/render_tests.js
2014-06-06 14:05:44 -07:00
Emily Stark
bcbd3b3810 Fix compiler output test 2014-06-06 12:30:18 -07:00
David Greenspan
cff3b175c0 try to fix Spacebars.include2 2014-06-06 12:07:50 -07:00
Matthew Arbesfeld
86cf6d08db Fix failing spacebars compiler test 2014-06-06 11:45:33 -07:00
Matthew Arbesfeld
5fb16bcf36 Fix failing template tests 2014-06-06 11:40:47 -07:00
Matthew Arbesfeld
fdcd43d057 Fix failing compiler tests 2014-06-06 11:28:56 -07:00
Emily Stark
a40a627395 Remove spacebars-compiler -> spacebars test dependency.
This fixes a circular build-time dependency when building test slices.
2014-06-02 14:15:17 -07:00
Emily Stark
4b6d3b2681 Reshuffle packages to allow ui to depend on ui-dynamic-template.
Remove the spacebars-compiler -> spacebars and spacebars-compiler -> ui
dependencies. With those dependencies, ui cannot depend on
ui-dynamic-template, because ui-dynamic-template depends on templating,
whose build plugin depends on spacebars-compiler, who depends on
spacebars who depends on ui.

spacebars-compiler doesn't actually need to depend on ui or spacebars;
it only needs to depend on spacebars to add things to the `Spacebars`
namespace, which this commit does by factoring out the Spacebars export
into a separate `spacebars-common` package.
2014-05-28 14:37:12 -07:00
Emily Stark
bd4a8735bd {{> UI.dynamic }} for easier dynamic template picking.
See #2123.
2014-05-27 17:17:24 -07:00
David Greenspan
e4ebeda175 Fix #2157 (issues with = in template args) 2014-05-27 16:09:57 -07:00