Skip to content

Commit

Permalink
Merge 280ca1d into 224efcf
Browse files Browse the repository at this point in the history
  • Loading branch information
marclaval committed Jun 16, 2014
2 parents 224efcf + 280ca1d commit 907c3fe
Show file tree
Hide file tree
Showing 23 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<link href="/images/favicon.ico" type="image/ico" rel="shortcut icon"/>
<link rel="stylesheet" href="/css/all.css" type="text/css"/>
<link rel="stylesheet" href="/css/site.css" type="text/css"/>
<link rel="stylesheet" href="/css/highlightjs/default-8.0.min.css" type="text/css"/>
<script src="/libs/highlightjs/highlight-8.0.min.js"></script>
<link rel="stylesheet" href="/css/highlightjs/default-7.2.min.css" type="text/css"/>
<script src="/libs/highlightjs/highlight-7.2.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->
Expand Down
1 change: 1 addition & 0 deletions docs/css/highlightjs/default-7.2.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/css/highlightjs/default-8.0.min.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/libs/highlightjs/highlight-7.2.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/libs/highlightjs/highlight-8.0.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion hsp/compiler/jsgenerator/processors.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports["template"] = function (node, walker) {
walker.templates[templateName] = templateCode;

var exportString = '';
if (node.export === true) {
if (node.isExport === true) {
exportString = ' =exports.' + templateName;
}

Expand Down
2 changes: 1 addition & 1 deletion hsp/compiler/treebuilder/syntaxTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ var SyntaxTree = klass({
}
}
}
node.export = block.mod === "export";
node.isExport = block.mod === "export";
node.startLine = block.line;
node.endLine = block.endLine;
node.content = [];
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/class1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
##### Syntax Tree
[
{
"type": "template","name": "test","args": ["msg"],"export": false, "content": [
"type": "template","name": "test","args": ["msg"],"isExport": false, "content": [
{
"type": "element","name": "div","closed": false,"attributes": [
{
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/component1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"type": "template",
"name": "foo",
"args": [],
"export": false,
"isExport": false,
"content": [
{ "type": "text","value": "foo " },
{
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/component2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"path": ["foo","ComponentController"],
"code": "foo.ComponentController"
},
"export": false,
"isExport": false,
"startLine": 2,
"endLine": 4,
"content": [
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/component5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": [],"export": false,"startLine": 1,"endLine": 7,
"type": "template","name": "test","args": [],"isExport": false,"startLine": 1,"endLine": 7,
"content": [
{
"type": "component","closed": false,"ref": {"category": "objectref","path": ["panel"],"code": "panel"},
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/component6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": [],"export": false,"startLine": 1,"endLine": 7,
"type": "template","name": "test","args": [],"isExport": false,"startLine": 1,"endLine": 7,
"content": [
{
"type": "component","closed": false,"ref": {"category": "objectref","path": ["panel"],"code": "panel"},
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/if4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"type": "template",
"name": "test",
"args": ["x"],
"export": false,
"isExport": false,
"startLine": 1,
"endLine": 9,
"content": [
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"type": "template",
"name": "test",
"args": ["value"],
"export": false,
"isExport": false,
"content": [
{ "type": "if",
"condition": {
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "template",
"name": "hello",
"args": [ "person", "foo", "bar" ],
"export": false,
"isExport": false,
"startLine": 1,
"endLine": 3,
"content": [
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": ["person"],"export": false,"startLine": 1,"endLine": 3,
"type": "template","name": "test","args": ["person"],"isExport": false,"startLine": 1,"endLine": 3,
"content": [
{
"type": "textblock",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression14.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": ["person"],"export": false,"startLine": 1,"endLine": 3,
"type": "template","name": "test","args": ["person"],"isExport": false,"startLine": 1,"endLine": 3,
"content": [
{
"type": "textblock",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression15.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": ["person"],"export": false,"startLine": 1,"endLine": 5,
"type": "template","name": "test","args": ["person"],"isExport": false,"startLine": 1,"endLine": 5,
"content": [
{
"type": "element",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression16.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "test","args": ["person"],"export": false,"startLine": 1,"endLine": 5,
"type": "template","name": "test","args": ["person"],"isExport": false,"startLine": 1,"endLine": 5,
"content": [
{
"type": "element",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/jsexpression8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
##### Syntax Tree:
[
{
"type": "template","name": "hello","args": ["person","property"],"export": false,"startLine": 1,"endLine": 3,
"type": "template","name": "hello","args": ["person","property"],"isExport": false,"startLine": 1,"endLine": 3,
"content": [
{
"type": "textblock",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/template2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

[
{ type: 'plaintext', value: '\n'},
{ type: 'template', name: 'hello4', export:true, args: [], content: [
{ type: 'template', name: 'hello4', isExport:true, args: [], content: [
{ type: 'text', value: 'Hello World!' }
]}
]
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/text4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"args": [
"name"
],
"export": false,
"isExport": false,
"content": [
{
"type": "textblock",
Expand Down
2 changes: 1 addition & 1 deletion test/compiler/samples/voidelement.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"type": "template",
"name": "test",
"args": [],
"export": false,
"isExport": false,
"content": [
{"type": "text", "value": "Hello"},
{"type": "element", "name": "br", "closed": true},
Expand Down

0 comments on commit 907c3fe

Please sign in to comment.