Open winwu opened 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 :)
Hi, i do install step by step, and edit the routes.php, but i got the unexpected '[' error, same code as
how do i solve the issue to let the jade render successfully? another question is, can i pass array() as $data? Thanks :)