The solution for this would be to create static assets under the resources/views
like resources/views/static
.
for example:
resources/views/static/foo.html
resources/views/static/bar/baz.html
after that I can place a wild-card-like route at my routes file,
then force view-engine to accept html
exension, and convert url hierarchy like blade hierarchy
Route::get('/pages/{url?}', function ($url) {
View::addExtension('html', 'php');
$viewPath = str_replace(DIRECTORY_SEPARATOR, '.', pathinfo($url, PATHINFO_DIRNAME)) . '.'.pathinfo($url, PATHINFO_FILENAME);
return View::make('static.'. $viewPath);
})->where('url', '(.*)');