-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved alias() method from Template::TT3::Class into Badger::Class.
Added some comments on the dire state of hash virtual methods.
- Loading branch information
Showing
6 changed files
with
26 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[% a + | ||
b + | ||
c + ^^^ # hello world! %] | ||
x + f * y / g + (c + ^^^) # hello world! %] | ||
|
||
This is parsing successfully. I'm not sure why the tag isn't detecting | ||
the unrecognised '^^^' characters. | ||
This should give a parse error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +0,0 @@ | ||
<html> | ||
<head> | ||
<title>TT3 Template Tree: examples/fail.tt3</title> | ||
<link rel="stylesheet" type="text/css" href="tt3.css"> | ||
<script type="text/javascript" src="jquery-1.3.2.min.js"></script> | ||
<script type="text/javascript" src="tt3.js"></script> | ||
|
||
</head> | ||
<body> | ||
<h1>TT3: examples/fail.tt3</h1> | ||
|
||
<div class="tabset" id="tabset"> | ||
<ul class="tabs"> | ||
<li class="warm"><a href="#tokens">Tokens</a></li> | ||
<li><a href="#tree">Tree</a></li> | ||
<li><a href="#output">Output</a></li> | ||
</ul> | ||
<div class="panels"> | ||
<div class="panel warm" id="tokens"> | ||
<h2>Source Tokens</h1> | ||
<div class="content"> | ||
<span class="tag"><span class="tag_start">[%</span><span class="whitespace"> </span><span class="word">a</span><span class="whitespace"> </span><span class="number">+</span><span class="whitespace"> | ||
<span class="nl"></span> </span><span class="word">b</span><span class="whitespace"> </span><span class="number">+</span><span class="whitespace"> | ||
<span class="nl"></span> </span><span class="word">c</span><span class="whitespace"> </span><span class="number">+</span><span class="whitespace"> </span><span class="word">^</span><span class="word">^</span><span class="word">^</span><span class="whitespace"> # hello world! </span><span class="tag_end">%]</span></span><span class="text"> | ||
|
||
This is parsing successfully. I'm not sure why the tag isn't detecting | ||
the unrecognised '^^^' characters.</span><span class="eof">--EOF--</span> | ||
</div> | ||
</div> | ||
<div class="panel" id="tree"> | ||
<h2>Parse Tree</h1> | ||
<div class="content"> | ||
<div class="block"><div class="binary expr element"><div class="head"><span class="info type">binary expr</span><span class="info posn">@21</span><span class="source">a + b + c + ^</span></div><div class="body"><div class="lhs "><div class="binary expr element"><div class="head"><span class="info type">binary expr</span><span class="info posn">@13</span><span class="source">a + b + c</span></div><div class="body"><div class="lhs "><div class="binary expr element"><div class="head"><span class="info type">binary expr</span><span class="info posn">@5</span><span class="source">a + b</span></div><div class="body"><div class="lhs "><div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@3</span><span class="source">a</span></div></div></div><div class="operator element">+</div><div class="rhs "><div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@11</span><span class="source">b</span></div></div></div></div></div></div><div class="operator element">+</div><div class="rhs "><div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@19</span><span class="source">c</span></div></div></div></div></div></div><div class="operator element">+</div><div class="rhs "><div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@23</span><span class="source">^</span></div></div></div></div></div> | ||
<div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@24</span><span class="source">^</span></div></div> | ||
<div class="variable element element"><div class="head"><span class="info type">variable element</span><span class="info posn">@25</span><span class="source">^</span></div></div> | ||
<div class="text element"><div class="head"><span class="info type">text</span><span class="info posn">@46</span><span class="source">\n\nThis is parsing successfully. I'm not sure why the tag isn't detecting\nthe unrecognised '^^^' characters.</span></div></div></div> | ||
</div> | ||
</div> | ||
<div class="panel" id="output"> | ||
<h2>Generated Output</h1> | ||
<div class="content"> | ||
<div class="error">template.tt3.variable.undef error - "a" is undefined</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
<script type="text/javascript"> | ||
$(document).ready( | ||
function() { | ||
$('#tabset').tt3_tabset(); | ||
$('#tree').tt3_tree(); | ||
} | ||
); | ||
</script> | ||
</html> | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters