1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

198 Commits

Author SHA1 Message Date
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
Suby Raman
0fd6ea5045 Set objects to be imported 2015-07-08 10:22:07 -04:00
Suby Raman
691e008c3e Add cli options for react/lodash import paths
Add in options if user wants to specify different paths to lodash or react in their application.
2015-07-08 10:12:44 -04:00
ido
e3a23fb1fb move file up to date message to verbose 2015-05-19 11:09:50 +03:00
Ido
cfb339845d Merge pull request #39 from liady/gh-pages-es6
convert es6 imports without brackets
2015-05-14 14:39:19 +03:00
Liad Yosef
e8d95c1a47 convert es6 imports without brackets 2015-05-10 17:23:25 +03:00
artemkaint
e9af1eea52 Fix spoiled option 'defines' 2015-05-06 15:52:55 +03:00
Liad Yosef
2114f5705e support "for" attribute in react templates
Add support for using "for" attribute and converting it to DOM API supported "htmlFor"
2015-04-28 12:47:11 +03:00
ido
d12b61ca0b fixed #34 api breaks 2015-04-26 16:37:25 +03:00
ido
52412d99b0 fix info print outs 2015-04-21 17:42:49 +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
307084e11d support react 13,
rename string utils method,
warn on rt-if without key
2015-04-21 17:15:03 +03:00
ido
e4bbd93844 cleanups 2015-04-16 17:41:52 +03:00
ido
a90e88582c eslint fixes 2015-04-05 17:17:10 +03:00
avim
737272f7c3 finished support for jsrt 2015-04-02 16:00:38 +03:00
avim
084a44b402 added jsrt support 2015-03-29 15:55:40 +03:00
ido
ee604b6a3a fixed #15 2015-03-18 12:13:40 +02:00
ido
e0f3501db7 eslint fixes 2015-03-08 16:11:19 +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
09a46dd543 added jsdoc 2015-02-22 11:16:44 +02:00
ido
4d00e92772 close #pr-14 es6 modules support 2015-02-19 14:45:41 +02:00
ido
cd12a3a4bf fix eslint issues 2015-02-19 13:07:30 +02:00
Bruno Grieder
49b5034f3e Added TypeScript support via the --modules typescript flag 2015-02-17 02:23:08 +01:00
ido
913e4d99fa fix eslint 2015-02-12 10:08:05 +02:00
Ido
65c80c1c3e Merge pull request #11 from drewlesueur/patch-1
fix bug with multiple rt files
2015-02-12 10:05:22 +02:00
ido
7ae3e11262 eslint 14 and fixes 2015-02-12 10:04:36 +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
Drew LeSueur
d3871194a6 added semicolons 2015-02-06 07:52:08 -07:00
Drew LeSueur
d60d1737cc fix bug with multiple rt files
calling `rt *.rt` will cause the variable names of all the final template functions to be the same. This fixes that issue.
2015-02-06 07:16:01 -07:00
ido
2c79edf519 better error reporting, added column and enfOffset, deprecated index 2015-02-01 11:50:05 +02:00
ido
3b9d8579fa increase test coverage 2015-01-22 18:02:18 +02:00
ido
4de1f45ea0 support named amd module 2015-01-22 16:50:50 +02:00
ido
866df02d0e support named amd module 2015-01-22 16:50:00 +02:00
barak igal
bd47783a0c added module id to the compiled output of templateAMDTemplate 2015-01-22 13:01:04 +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
ido
dbcd1f2cbe fix eslint 2015-01-19 13:51:05 +02:00
ido
21271eefa4 list version and expose convertTemplate 2015-01-19 10:38:39 +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
ido
5ab047cbed fix bug with json output 2015-01-12 15:02:10 +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
Dany Shaanan
93e8c59e37 added eslint rules: no-new-require, block-scoped-var and fixed errors 2015-01-05 14:10:33 +02:00
ido
5d55e210b7 fix eslint issues 2014-12-31 16:41:11 +02:00
ido
5d906b3d6a add support for react 0.12.2 2014-12-31 09:55:06 +02:00
ido
bf3c5d550a improved UI, better samples 2014-12-30 10:42:31 +02:00
ido
349057188a allow generation of globals + ui fixes 2014-12-28 11:47:34 +02:00