Skip to content

Commit

Permalink
Minor tweaks to composer and README plus modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvenSpellmaker committed Jan 15, 2017
1 parent 34b1ca3 commit 253017b
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 6 deletions.
Empty file modified Autoloader.php
100755 → 100644
Empty file.
9 changes: 4 additions & 5 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#Глаза (Glaza)
Глаза (Glaza)
=============

Глаза is a *very* basic view handler and parser for PHP views.

## Installing
Installing can be done through Composer:

`composer require ElvenSpellmaker/Glaza`
When asked which version to use, for now please use `dev-master`.

If you don't want to use Composer, then clone the repo and include the provided AutoLoader:
```php`
Expand Down Expand Up @@ -44,8 +44,7 @@ Views can contain other views too:
$view->set('bar', new View( 'NestedView' ) );
```

###Rendering A View

### Rendering A View
In `ViewTestHtml.php` is the code:
```php
<html>
Expand All @@ -68,7 +67,7 @@ Using the above exmaple the output is shown below:
</html>
```

###Automatic Escaping (Sanitisation)
### Automatic Escaping (Sanitisation)
Consider the following code:
```php`
$view->set('foo', '<b>Not Bold</b>');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ElvenSpellmaker/Glaza",
"name": "elvenspellmaker/glaza",
"type": "library",
"description": "Basic View Parser",
"license": [],
Expand Down
Empty file modified src/Глаза/View.php
100755 → 100644
Empty file.
Empty file modified src/Глаза/ViewInterface.php
100755 → 100644
Empty file.
Empty file modified src/Глаза/ViewManager.php
100755 → 100644
Empty file.
Empty file modified src/Глаза/ViewManagerInterface.php
100755 → 100644
Empty file.
Empty file modified tests/ViewInViewTest.php
100755 → 100644
Empty file.
Empty file modified tests/ViewTest.php
100755 → 100644
Empty file.
Empty file modified tests/ViewTestHtml.php
100755 → 100644
Empty file.

0 comments on commit 253017b

Please sign in to comment.