dskinner / damsel-python

Markup Language featuring html outlining via css-selectors, embedded python, and extensibility.
MIT License
43 stars 3 forks source link

Please add support for Python 3.x #27

Open yajo opened 11 years ago

yajo commented 11 years ago

Great templating language! I just miss it in Py3k.

FichteFoll commented 11 years ago

Would be really nice indeed.

dskinner commented 11 years ago

I need to update the README, but this project (as written in python) is defunct as evident by the lack of commits for over a year.

This project has been rewritten in Go but does not feature the inline python within templates. Personally, this was a killer feature that I loved. In my professional experience, this was a horrible, horrible, horrible idea.

Core features of the Go version are stable and superior to this python version which has many small bugs. There are new features to the core templating as well.

I'm currently waiting for updates to the Go language that will allow simple integration with other languages, so python 2.x and 3.x plugins for damsel are planned, pending this.

Project is here: https://github.com/dskinner/damsel Star it to follow when python (and other languages) are supported

Documentation: http://godoc.org/github.com/dskinner/damsel To check out the new features

FichteFoll commented 11 years ago

Well, maybe you can help me a bit.

I was basically searching for some standalond HTML abstraction with some template features. I'm thinking of having the template data in YAML files but that's another thing.

Basically, I stated with HAML but since it is kinda sitting on top of Rails and I don't know Ruby at all, this seemed to be somewhat it the wrong direction. I then looked at HamlPy (since I know Python quite well) but its syntax wasn't too appealing so I looked for more alternatives. I eventually found dmsl and I really liked the syntax, also the python evaluation stuff, which is why I'm here right now. Anyway, after being able to fix the install error on Windows regarding error: Unable to find vcvarsall.bat I was about to actually try this now.

I don't know Go and I never did anything with it, so I doubt it suits my needs. (Note: I don't care about performance, as long as compiling a template doesn't take 1s.)

dskinner commented 11 years ago

The Go port has a command line util for rendering documents and is very much intended to be stand alone. The cli util could be wrapped for a primitive, but effective, plugin but if this sounds confusing to you, I'd really just suggest using HamlPy.

I'd also highly recommend you avoid this project except for amusement or curiosity.

On Wed, Aug 21, 2013 at 2:35 PM, FichteFoll notifications@github.comwrote:

Well, maybe you can help me a bit.

I was basically searching for some standalond HTML abstraction with some template features. I'm thinking of having the template data in YAML files but that's another thing.

Basically, I stated with HAML but since it is kinda sitting on top of Rails and I don't know Ruby at all, this seemed to be somewhat it the wrong direction. I then looked at HamlPy (since I know Python quite well) but its syntax wasn't too appealing so I looked for more alternatives. I eventually found dmsl and I really liked the syntax, also the python evaluation stuff, which is why I'm here right now. Anyway, after being able to fix the install error on Windows regarding error: Unable to find vcvarsall.bat I was about to actually try this now.

I don't know Go and I never did anything with it, so I doubt it suits my needs.

— Reply to this email directly or view it on GitHubhttps://github.com/dskinner/dmsl/issues/27#issuecomment-23043767 .

yajo commented 11 years ago

For the time being, I have been very happy with https://github.com/Pitmairen/hamlish-jinja, which uses Jinja2 engine, so it can be used standalone, not like the Django-dependant HamlPy. Just in case someone is interested. And it has Python 3 support.