Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View template attributes #1089

Open
Michiel-s opened this issue Jul 15, 2020 · 0 comments
Open

View template attributes #1089

Michiel-s opened this issue Jul 15, 2020 · 0 comments

Comments

@Michiel-s
Copy link
Member

Michiel-s commented Jul 15, 2020

Just like proposed in #1084 this issue request for possibility to specify template attribute for user defined templates for leaf nodes.

Example of current syntax

VIEW "PersonEmail"    : Person { email : personEmail } HTML TEMPLATE "PersonEmail.html" ENDVIEW

INTERFACE "Active projects" : V[SESSION*Project];projectActive BOX
    [ "Projects"      : I[Project]
    , "Projectleider" : pl <PersonEmail>
    ]

Requested attribute syntax, e.g.

INTERFACE "Active projects" : V[SESSION*Project];projectActive BOX
    [ "Projects"      : I[Project]
    , "Projectleider" : pl <PersonEmail attrWithoutValue attrWithValue="test">
    ]

Like with the box attributes #1084, these attributes must be available in the template engine (haskell part) and in the generated view.json for the prototype framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants