Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Commit

Permalink
Update example script
Browse files Browse the repository at this point in the history
  • Loading branch information
velosipedist committed Dec 5, 2014
1 parent fe2f92e commit c5da883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions example/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
* This example page is combined entry script and main php template
* */
//require_once __DIR__ . "/../vendor/autoload.php"; //debug instead of phar inclusion
ob_start();
require_once __DIR__ . "/lessnichy-app/lessnichy.phar"; // production include
ob_end_clean();
require_once __DIR__ . "/../build/lessnichy.phar"; // production include

// add() can be used in any sub-template before main layout rendering
LESS::connect('/lessnichy-app', false)->add(
LESS::connect('/lessnichy-app', true)->add(
array(
'/less/foo.less'
)
Expand All @@ -31,7 +29,6 @@
<?
LESS::head(
array(
// LESS::JS => '/js/less-1.7.0.min.js', // customize less.js lib
LESS::WATCH => true,
LESS::WATCH_INTERVAL => 5000,
)
Expand Down
5 changes: 1 addition & 4 deletions example/lessnichy-app/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
//shebang workaround
ob_start();
require __DIR__.'/lessnichy.phar'; // production include
ob_end_clean();
require __DIR__ . '/../../build/lessnichy.phar'; // production include
//require_once __DIR__ . "/../../vendor/autoload.php"; //debug instead of phar inclusion
// require php on dev mode or phar on production
LESS::listen();

0 comments on commit c5da883

Please sign in to comment.