-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.test { | ||
test-property: 'completed' | ||
iframe { | ||
border: 0; | ||
height: 700px; | ||
width: 100%; | ||
background: white; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>AgentArray</title> | ||
</head> | ||
<body> | ||
<article> | ||
This is agent array tutorial | ||
<div></div> | ||
</article> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.test { | ||
test-property: 'completed' | ||
iframe { | ||
border: 0; | ||
height: 700px; | ||
width: 100%; | ||
background: white; | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,3 +204,5 @@ | |
<?js } ?> | ||
|
||
<?js }); ?> | ||
|
||
<?js= self.partial('include-target-script-and-styles.tmpl', arguments[0].filename) ?> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?js | ||
|
||
const filename = obj.replace('.html', '') | ||
const scripts = [] | ||
const styles = [] | ||
|
||
|
||
for (const script of this.includeScript) { | ||
if(typeof script === 'object') { | ||
for (const target of script.targets) { | ||
if(filename === target) { | ||
scripts.push(script.filepath) | ||
} | ||
} | ||
} | ||
} | ||
|
||
for (const style of this.includeCss) { | ||
if(typeof style === 'object') { | ||
for (const target of style.targets) { | ||
if(filename === target) { | ||
styles.push(style.filepath) | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
?> | ||
|
||
<?js scripts.forEach(function(source){ ?> | ||
<script src="<?js= source ?>"></script> | ||
<?js }) ?> | ||
|
||
<?js styles.forEach(function(source){ ?> | ||
<script> | ||
document.head.innerHTML += '<link type="text/css" rel="stylesheet" href="<?js= source ?>">' | ||
</script> | ||
<?js }) ?> |