Commit Graph

70 Commits

Author SHA1 Message Date
Nir Natan 4ee34d21ae convert 'template' tag to 'rt-template' 2015-08-17 17:39:09 +03:00
Nir Natan 78799bfca7 add support for function templates props 2015-08-09 23:37:33 +03:00
ido 0e744736ce fixed #52 2015-08-02 17:16:55 +03:00
ido accef5fb0f merge #45 2015-07-30 13:41:55 +03:00
ido 3415de3661 Merge branch 'scope-variable-references' of https://github.com/anchann/react-templates into anchann-scope-variable-references 2015-07-30 13:40:39 +03:00
ido 02f4c08bd3 close #43 2015-07-29 17:47:13 +03:00
ido 707b5d8fd2 eslint fixes 2015-07-29 17:15:42 +03:00
anchann 0c5fee07a7 In rt-scope subsequent aliases should be able to reference preceding ones
Rationale: It is typical to want to alias multiple subtrees of a nested
structure in a single rt-scope statement, like so:

<div rt-scope="this.props.user as user; user.profile as profile;
user.friends as friends">

This was not possible because of the function parameter based
implementation of rt-scope. I tweaked it a bit to use var declaration
instead, while preserving the parameter-based passing for all child
scopes.
2015-07-27 15:56:10 +09:00
anchann 88dc5544e8 Allow trailing semicolon in rt-scope
Rationale: it is natural for many developers to place a trailing
semicolon after the last scope alias pair, just as they do after every
preceding pair in the list. Since it is possible to save them time (and
perhaps frustration) at no cost in terms of semantics and safety, we
should do so.

On tests. Wasn't sure if this should be broken out into a separate test,
or bundled together with the existing one.
2015-07-27 13:57:16 +09:00
ido cee215c081 fix error not clearing in playground 2015-07-07 11:54:59 +03:00
Liad Yosef e8d95c1a47 convert es6 imports without brackets 2015-05-10 17:23:25 +03:00
ido d12b61ca0b fixed #34 api breaks 2015-04-26 16:37:25 +03:00
ido 9d868f7466 add class test 2015-04-21 18:24:19 +03:00
ido 8e4af67439 eslint fixes 2015-04-21 17:32:12 +03:00
ido 2ab86644f0 add context where missing 2015-04-21 17:21:12 +03:00
ido a90e88582c eslint fixes 2015-04-05 17:17:10 +03:00
ido e451c9b4a1 Merge remote-tracking branch 'origin/gh-pages' into gh-pages 2015-03-30 11:20:30 +03:00
ido 1082f8f244 update dependencies + eslint react and prop types 2015-03-30 11:18:59 +03:00
avim 084a44b402 added jsrt support 2015-03-29 15:55:40 +03:00
ido 92e8ca38cd fix test 2015-03-18 13:18:53 +02:00
avim faa6b1adf2 added better rt-props support use assign instead of merge and merge correctly style and className 2015-02-26 10:48:44 +02:00
ido 4d00e92772 close #pr-14 es6 modules support 2015-02-19 14:45:41 +02:00
Bruno Grieder 49b5034f3e Added TypeScript support via the `--modules typescript` flag 2015-02-17 02:23:08 +01:00
ido 4d52b03be1 fix tests 2015-02-11 16:42:03 +02:00
avim d1e6d41740 fixed js execution context outside of string nodes needs to concat as string 2015-02-09 10:43:55 +02:00
avim 0af424dd7e change string concat to separate children in the function call, so you don't get [Object object] 2015-02-08 17:26:29 +02:00
ido 2c79edf519 better error reporting, added column and enfOffset, deprecated index 2015-02-01 11:50:05 +02:00
ido f187062ed1 increase coverage 2015-01-27 15:10:54 +02:00
ido f63fa8e366 add coverage and update dependencies 2015-01-25 11:18:35 +02:00
ido 3b9d8579fa increase test coverage 2015-01-22 18:02:18 +02:00
ido 866df02d0e support named amd module 2015-01-22 16:50:00 +02:00
ido cc8c83fa71 add tests to eslint 2015-01-19 16:53:14 +02:00
avim 36f1edfc1f support style tags - cheerio parses them as special section in the html 2015-01-19 16:22:42 +02:00
avim 5015222f45 support custom-elements 2015-01-19 15:29:42 +02:00
avim 268ac0a419 fixed tests on windows 2015-01-19 15:29:11 +02:00
Avi Marcus 3ba52d1653 replace htmlMode with hard wired list of self closing tags... caused weird problems with rt-require... 2015-01-12 20:08:30 +02:00
ido f515c17a67 add tests for json output 2015-01-12 15:29:21 +02:00
avim 491a3e6125 html mode instead of xml, fix problem with inputs and br tags caused by html which is not valid xml 2015-01-11 12:13:01 +02:00
ido 2abd385739 removed eslint ignores 2014-12-28 11:48:50 +02:00
Avi Marcus 8fb5fb3674 moved require to rt-require tag instead of inside of doctype and removed doctype completely 2014-12-11 09:30:27 +02:00
ido 3066de38b7 invalid input tests 2014-12-09 17:20:09 +02:00
avim 13fffaa55d support React 0.12 & React 0.10/0.11 syntax and dom elements 2014-12-04 14:40:54 +02:00
ido 4654770a10 react/addons generation change 2014-12-03 11:45:31 +02:00
ido a317b0df1a error handling + test 2014-12-02 14:30:06 +02:00
amitk 68b6015bfd Don't ignore whitespace in html text 2014-11-30 10:55:38 +02:00
amitk edbc8fac9b Added rt-props 2014-11-29 23:32:00 +02:00
ido e646677554 fix clone issue 2014-11-27 18:52:12 +02:00
avim 7504b09a12 fixed tests
Fixed problem with wrapping of injected code if concatted with strings.
2014-11-27 11:57:45 +02:00
ido 44cb755bd8 add grunt 2014-11-18 15:54:34 +02:00
ido d8d89c020f eslint fixes + chalk 2014-11-16 16:22:32 +02:00