2
我有模板和兩個片段。我可以在模板中選擇動態代碼段嗎?LiftWeb Loc.Template參數
def remote =
Menu.param[Point]("Test1", "remote",
id => inTransaction(Points.lookup(id)), _.id)/"point"/*/"remote" >>
//inTransaction(Points.lookup(id)) match
// case point.Kind.remote =>
Loc.Template(() => Templates("point" :: "remote" :: Nil).openOr(Nil)) >> Hidden
// case point.Kind.otherremote =>
//Loc.Template(() => Templates("point" :: "otherremote" :: Nil).openOr(Nil)) >> Hidden