Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

urth-core-bind templates are not getting initialized with the data already on the channel #35

Closed
lbustelo opened this issue Oct 12, 2015 · 2 comments

Comments

@lbustelo
Copy link
Collaborator

If we have a cell that does

from urth.widgets.widget_channels import channel
channel('c').set('user', 'Python')

Run that cell and then run a subsequent cell with code

%%html
<template is='urth-core-bind' channel='c'>
    <div>Hello from <span>{{user}}</span></div>
    Name: <input value='{{user::input}}'></input>
</template>

The value of variable c is not set in the <template>.

The expectation is that the <template> renders with any values that are already on the channel.

Thanks to @jhpedemonte and @dalogsdon

@lbustelo
Copy link
Collaborator Author

Note:
Call to channel('c').set() should create the c channel if it does not exist.

@wellecks
Copy link
Contributor

I'll take a look at this one

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

No branches or pull requests

2 participants