thesli / laravel-jade-engine-package

12 stars 2 forks source link

get the syntax error, unexpected '[' #1

Open winwu opened 10 years ago

winwu commented 10 years ago

Hi, i do install step by step, and edit the routes.php, but i got the unexpected '[' error, same code as

Route::get("/example",function(){
    $data = [
    "hello" => "You are welcome.",
    "welcome"=>true,
    "list"=>["item1,item2,item3"],
    "escapetxt"=>"<b>bold tags</b>"
    return Jade::render("example/index",$data);
});

how do i solve the issue to let the jade render successfully? another question is, can i pass array() as $data? Thanks :)