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

Template instantiation: include mapped holes in TemplateInstance.Vars #162

Open
Tarmil opened this issue Mar 23, 2018 · 0 comments
Open
Assignees
Labels

Comments

@Tarmil
Copy link
Member

Tarmil commented Mar 23, 2018

Currently if there is a subtemplate with a ws-var:

<div ws-template="Control">
  <input ws-var="Var" />
</div>

and it is instantiated in HTML, with a mapping for the ws-var:

<div>
  <ws-Control Var="MyVar"></ws-Control>
  <button ws-onclick="Click">Click me</button>
</div>

then this var is not included in the resulting instance's Vars:

MainTemplate()
    .Click(fun e ->
        // error: The field, constructor or member 'MyVar' is not defined.
        e.Vars.MyVar.Value <- "test")

But it should be.

@Tarmil Tarmil added the bug label Mar 23, 2018
@Tarmil Tarmil self-assigned this Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant