notpl
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "notpl", | ||
"main": "notpl.js", | ||
"licence": "MIT", | ||
"liscense": "MIT", | ||
"description": "The \"No Template\" Javascript Templating Engine", | ||
@@ -14,3 +14,3 @@ "keywords": [ | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -29,4 +29,3 @@ "name": "Jason Pollman", | ||
"url": "git://github.com/PuffNStuff/NoTpl" | ||
}, | ||
"liscense": "MIT" | ||
} | ||
} |
# **NoTpl** (notpl.js) | ||
#### The "No Template" Javascript Templating Engine | ||
> **Remember the good old days when PHP reigned supreme and you could write your code directly into webpages?** | ||
> **Remember the "good old days" when PHP reigned supreme and you could write your code directly into webpages?** | ||
NoTpl aims to do just that with Node & JavaScript. | ||
@@ -12,4 +12,4 @@ | ||
* [Install](#install) | ||
* [About NoTpl](#about) | ||
* Installation (*...soon*) | ||
* [Useage](#useage) | ||
@@ -27,5 +27,9 @@ - [Create a Template](#create) | ||
* [Options](#options) | ||
* [To Do...](#todo) | ||
* [Developers](#dev) | ||
## <a name="install"></a>Install: | ||
> $ npm install notpl | ||
## <a name="about"></a>About NoTpl: | ||
@@ -154,3 +158,3 @@ Most JavaScript template engines such as Jade, doT, or Mustache require a special "templating syntax." Lexing and parsing these special syntaxes takes execution time and requires you to learn new markup. | ||
<a name="examples"></a>### Examples | ||
###<a name="examples"></a> Examples | ||
###### Using `print`: | ||
@@ -186,4 +190,3 @@ ``` | ||
</html> | ||
``` | ||
``` | ||
<!-- Template #2 (names.html): --> | ||
@@ -203,3 +206,4 @@ <div id="people"> | ||
**Rendering this template will produce:** | ||
> ```<!DOCTYPE html> | ||
``` | ||
<!DOCTYPE html> | ||
<html> | ||
@@ -215,3 +219,4 @@ <head> | ||
</body> | ||
</html>``` | ||
</html> | ||
``` | ||
@@ -254,3 +259,3 @@ | ||
- **update()** | ||
* Returns a partial render of the template, if it has been fully rendered at least once. | ||
* Returns a partial render of the template if it has been fully rendered already, null otherwise. | ||
- **output()** | ||
@@ -306,6 +311,12 @@ * Returns the output of the last render. | ||
## <a name="dev"></a>Developers | ||
* "Jason Pollman" | ||
### <a name="todo"></a>To Do... | ||
* Better Error Handling: | ||
- Figure out a way to print template line numbers in thrown errors. | ||
- Better error detection/repair. | ||
* Figure out a way to make the arguments `print`,`render`, and `echo` un-reassignable (immutable). | ||
* **Integrate NoTpl for the client-side.** | ||
### <a name="dev"></a>Developers | ||
* Jason "PuffNStuff" Pollman | ||
- <JPPuffNStuff@gmail.com> | ||
- https://github.com/PuffNStuff | ||
54813
315