Changed doctype to be "rt"

This commit is contained in:
amitk 2014-11-16 09:01:31 +02:00
parent 1962bb4abf
commit 1e44367bcd
6 changed files with 7 additions and 7 deletions

View File

@ -242,7 +242,7 @@ function convertHtmlToReact(node, context) {
}
function extractDefinesFromJSXTag(html, defines) {
html = html.replace(/\<\!doctype jsx\s*(.*?)\s*\>/i, function(full, reqStr) {
html = html.replace(/\<\!doctype rt\s*(.*?)\s*\>/i, function(full, reqStr) {
var match = true;
while (match) {
match = false;
@ -301,7 +301,7 @@ function convertFile(source, target) {
}
var html = fs.readFileSync(source).toString();
if (!html.match(/\<\!doctype jsx/i)) {
if (!html.match(/\<\!doctype rt/i)) {
throw new Error('invalid file, missing header');
}
var js = convertTemplateToReact(html);

View File

@ -1,3 +1,3 @@
<!doctype jsx>
<!doctype rt>
<div>
</div>

View File

@ -1,4 +1,4 @@
<!DOCTYPE jsx>
<!DOCTYPE rt>
<div rt-scope="{value:'event did not happen because onClick not called'} as data"
onMouseDown="(evt) => data.value = 'event did happen though it should not'"
onClick="() => data.value = 'event did happen though it should not'">

View File

@ -1,4 +1,4 @@
<!DOCTYPE jsx>
<!DOCTYPE rt>
<p>
<div rt-repeat="items in this.props.things">
<span style="width:auto;line-height: 5px;"

View File

@ -1,4 +1,4 @@
<!DOCTYPE jsx>
<!DOCTYPE rt>
<div>
<div rt-scope="['a','b','c'] as items">
<span rt-repeat="item in items">Item:#{itemIndex} = {item}</span>

View File

@ -1,4 +1,4 @@
<!doctype jsx>
<!doctype rt>
<div>
<div style= "position: relative; textAlign: center;