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

Scalatags support #15

Open
mkotsbak opened this issue Nov 26, 2015 · 4 comments
Open

Scalatags support #15

mkotsbak opened this issue Nov 26, 2015 · 4 comments

Comments

@mkotsbak
Copy link

Would be nice to be able to also use Scalatags: https://github.com/lihaoyi/scalatags also, or combine a site with both scalatags and templates, for those of use used to the React/Widok style og mixing code and html.

@antonkulaga
Copy link
Owner

There used to be support for scalatags but I think I temporaly removed it during refactoring.

@mkotsbak
Copy link
Author

Ah ok, then it should be easy to get back.

@antonkulaga
Copy link
Owner

if you want to try it - let me know, I can help you with the code.

@antonkulaga
Copy link
Owner

I have not tested yet but I think scalatags should work with the latest commit. In html it will be something like:

<div data-inner-html="fooTag"></div>

and in corresponding view class you should have some reactive scalatag

val fooTag = Var(p("hello world"))

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

No branches or pull requests

2 participants