-
Notifications
You must be signed in to change notification settings - Fork 0
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
Provide HTML web interface #8
Comments
Mostly I just opened this issue to share some code you expressed interest in during the Vala meetup. I've now successfully extracted it from my defunct project and put it in its own GitHub repository: https://github.com/alcinnz/Prosody Its not packaged very well, but I do have it building a library & demoscript which sucessfully passes its testsuite. Also: I'll be happy to transfer repository ownership over to you if you want it! This templating language is heavily inspired by Django's and includes several useful features:
All written in pure Vala! Would this be useful? |
Yep! I've started to try to integrate it, but I can't seem to figure out how to render a template to a response. Here's my current attempt: Lines 66 to 72 in fdff1f1
However, it doesn't work:
What am I doing wrong? |
Oh gosh, sorry, I already extracted it: https://github.com/aleksrutins/Prosody |
Yes, I noticed I had something lacking there as I did my own extraction. The story is I was rendering directly into WebKitGTK, so I needed something a bit more convoluted to write into an OutputStream rather than an InputStream. I fixed that in my extraction work. P.S. I find a bit more code to extract sometime, and I'm tempted to try implementing template inheritance again akin to Django. |
But at first glance, looking at your code, it looks fine! |
I actually figured it out finally a couple of hours ago, when I realized looking at your example that I can pass data as JSON. Thanks! |
It'd be nice to be able to view the packages available on this service via a web browser! I certainly like doing so with the equivalent tools for other languages.
Also, I'm curious what you'd design here?
The text was updated successfully, but these errors were encountered: