How to call a template which accepts variable number of args in Play Framework 2

前端 未结 3 816
悲&欢浪女
悲&欢浪女 2021-01-12 08:54

The Play Framework 2 template language is pretty nice. However, though it’s ‘inspired by’ Microsoft’s Razor language, one important design decision is different: how you ‘es

3条回答
  •  悲&欢浪女
    2021-01-12 09:11

    I can't test this right now in this machine, but the following should work (no need of auxiliar method):

    @()
    
    @structuredpage("Dashboard"){
       ("Latest Requests", {
            

    Blah

    }), ("Your Details", {

    Blah blah

    }) }

提交回复
热议问题