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

Punctuation in arguments #4

Open
shacker opened this issue Jul 7, 2009 · 1 comment
Open

Punctuation in arguments #4

shacker opened this issue Jul 7, 2009 · 1 comment

Comments

@shacker
Copy link

shacker commented Jul 7, 2009

I want to pass in a custom "poster frame" argument for a media player embed, using syntax like:

{{ jwp /path/to/video.m4v poster=/path/to/image.png width=720 height=550 }}

The poster= argument works fine as long as it's an alphanumeric string with no punctuation marks. But when it includes dots and/or slashes as above (or any other punctuation mark), the whole template fails to render. Surrounding in single or double quotes also causes it to break. I'm using :

def get_context(self):
    video_path = self.value
    poster = self.kwargs['poster']

Any tips on how to include arguments with punctuation? Or is this a bug? Thanks.

@worksology
Copy link

I have a similar issue. I'm trying to do something like:

{{ image 20 link="http://google.com" }}

to generate something like:

<a href="http://google.com"><img src="blah.png" /></a>

but am unable to pass such complex values. Is there a better approach, or is this a bug?

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