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
<!DOCTYPE html> | |
<script type="text/javascript" src="taml.js"></script> | |
<taml xmlns:ren="org.noben.widgets.renderers"> | |
<application title='yello!'> | |
<background color="#344556"> | |
<hgroup left="5" right="5" top="5" bottom="5"> |
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
taml { | |
div #left { | |
ul #list @items { | |
li { | |
a .item { | |
@item.text | |
} | |
} | |
} | |
} |
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
#application | |
#leftcol | |
#list | |
@listtemplate * {datalist} | |
#rightcol | |
#page | |
@listtemplate |
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
css "styles/app.css" | |
#application | |
#leftcol | |
#list | |
@listtemplate * {m.todolist} | |
#rightcol | |
#page |
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
ns machines="domain.machines" | |
ns orgs="domain.orgs" | |
html { | |
body { | |
h2 content="Hello world" | |
p { | |
"This is some paragraph text" | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Halite.Parse | |
{ | |
/// <summary> | |
/// Contains parsers and functions related to parsing. Parsers are functions that process a string starting at a certain index and | |
/// either give a meaningful interpretation an update the index, or return false (leaving the index unaltered). Some parser have a |
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
// declaring a function | |
// has a conditional in the return value | |
(flip val) = !val if (val == false) || null | |
// declaring a variable or function with no arguments | |
(b) = false | |
b = flip(b) | |
// b is now true |
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
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
const ( | |
END = "<END>" | |
ASSIGN = "<ASSIGN>" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics"> | |
<Asset Type="Graphics:FontDescription"> | |
<FontName>Segoe UI Mono</FontName> | |
<Size>14</Size> | |
<Spacing>0</Spacing> |
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
(function($) { | |
// My micro jQuery templating engine | |
// Usage: | |
// | |
// <section data-html="content"></section> | |
// | |
// Will load <content.html> into <section> | |
$(document).ready(function() { |
OlderNewer