framework/views/index.blade.php

35 lines
948 B
PHP
Raw Normal View History

2015-04-25 20:58:39 +08:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ $title }}</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<base href="/">
@foreach ($styles as $file)
2015-04-25 20:58:39 +08:00
<link rel="stylesheet" href="{{ str_replace(public_path(), '', $file) }}">
@endforeach
</head>
2015-04-25 20:58:39 +08:00
<body>
2015-04-25 20:58:39 +08:00
{!! $layout !!}
2015-04-25 20:58:39 +08:00
<div id="modal"></div>
<div id="alerts"></div>
@foreach ($scripts as $file)
2015-04-25 20:58:39 +08:00
<script src="{{ str_replace(public_path(), '', $file) }}"></script>
@endforeach
2015-04-25 20:58:39 +08:00
<script>
var app = require('flarum/app')['default'];
app.config = {!! json_encode($config) !!};
app.preload = {
data: {!! json_encode($data) !!},
session: {!! json_encode($session) !!}
};
app.boot();
</script>
</body>
</html>