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

Implement unbuffered code block for var setting #223

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

paradoxxxzero
Copy link

This should partly fix #98
Semicolons are used to separate multiple instructions in code blocks. I'm not too proud about that and about the parseTextBlock() part

In any case, this allows to write:

- var a = 1;

-
  var b = [
    1,
    2,
    4,
    3,
    7
  ];

-
  var c = 2;
  var d = c * 2;

I added this as a test case.

Please review.

@syrusakbary syrusakbary force-pushed the master branch 3 times, most recently from 4a76e8a to eb84811 Compare January 7, 2016 17:08
@kakulukia
Copy link

Since there are no updates to pyjade and its successor recently was deleted from pypi, I took the liberty to revive it: https://github.com/kakulukia/pypugjs

Version 5.0.1 has fixed the incompatibility with recent Django versions.
I'll be happy to merge this into the next version if you resubmit the PR to my repo.

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

Successfully merging this pull request may close these issues.

Support multi-line code blocks
2 participants