引入markdown-latex測試,后期加入版本进行测试

deploy
a74589669 2019-09-30 22:37:24 +08:00
parent a7eb1ba020
commit fe6501ec7a
2 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class Home extends \Core\Controller
}
public function renderAction() {
View::renderTemplate("/Home/index.html",[]);
View::renderTemplate("/base.html",[]);
}
public function docsAction(){
$docs = new Models\Doc();

View File

@ -1,11 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
</head>
<body>
shit!
When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
{% block body %}
{% endblock %}
</body>