j2css / mithril-j2c

j2c integration for mithril

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a spy on `m` to localize class names?

pygy opened this issue · comments

It may be nice to have

var mx = mithrilJ2c.spy(m, j2c)
mx('.foo.', 'hello') // <div class="foo__j2c-sad76as7fg6d98fsp">hello</div>

What do you think?

where do you put the definitions than? Can you give a more detailed example?