Import local app source
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# templates/pages/sundererapp/sundererapp.py
|
||||
import frappe
|
||||
from frappe import _
|
||||
|
||||
def get_context(context):
|
||||
"""
|
||||
SPA 路由处理逻辑。
|
||||
由于 hooks.py 将路由映射到这里,且模板文件名为 sundererapp.html,
|
||||
Frappe 会自动查找 sundererapp/sundererapp.html 作为模板。
|
||||
"""
|
||||
pass # 保持简单,让 Frappe 自动渲染模板
|
||||
Reference in New Issue
Block a user