codelv / enaml-web

Build interactive websites with enaml
https://codelv.com/projects/enaml-web/
MIT License
99 stars 17 forks source link

django integration #8

Closed devxpy closed 6 years ago

devxpy commented 6 years ago

Is there any way to integrate this with django currently?

If not, can I use this to spit out static html?

frmdstryr commented 6 years ago

Yes. You can create a LxmlApplication which has no server component and then render pages for any application (django, flask, etc..) or save them to a file to make a static site.

I pushed an example here https://github.com/codelv/enaml-web/tree/master/examples/static_site

devxpy commented 6 years ago

Thanks!

devxpy commented 6 years ago

Can you please point me to the source that declares the Materialize components, I want to browse the API.

If possible I will shell out some time to generate automatic API docs

frmdstryr commented 6 years ago

Some of them are here https://github.com/codelv/enaml-web/blob/master/examples/simple_site/views/blocks.enaml

It would be really nice to have separate libraries with all of the components for the popular css frameworks (materialize, bootstrap, semantic-ui etc..).

devxpy commented 6 years ago

It would be even nicer if we could write a code generator for this :D

devxpy commented 6 years ago

Are you interested in uploading to pypi?

Please check out my pull request that'll make it easier for you to do it

https://github.com/codelv/enaml-web/pull/9