Skip to content

Implement unbuffered code block for var setting#223

Open
paradoxxxzero wants to merge 5 commits intosyrusakbary:masterfrom
paradoxxxzero:code-block
Open

Implement unbuffered code block for var setting#223
paradoxxxzero wants to merge 5 commits intosyrusakbary:masterfrom
paradoxxxzero:code-block

Conversation

@paradoxxxzero
Copy link
Copy Markdown

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
Copy Markdown

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