Giter Club home page Giter Club logo

beeswax's People

Contributors

otherjoel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

beeswax's Issues

Calls to `current-metas` and `current-pagetree` always return false during a `define`-like expression

Any defines in a Beeswax template get moved to the top of the apply-template function that Beeswax wraps around the template. It so happens that the place they get put is outside the scope of the parameterize that sets the value of the current-pagetree and current-metas. (See these lines in the expander.) So any definitions that depend, directly or indirectly, on those two parameters will receive incorrect values.

Surfaced by @benknoble in follow-up for #12.

Performance benefits need better measurements

There may be a good case for folding this functionality into Pollen if there are clear performance benefits. The benefits of having a templating #lang that interacts well with DrRacket are axiomatic, but minor.

Test fails on Windows

C:\>raco test -p beeswax
...
--------------------
Check (current-project-root) required from pollen/setup
FAILURE
name:       check-equal?
location:   test-output.rkt:41:1
actual:     "beeswax\\test\\data"
expected:   "beeswax/test/data"
--------------------

Auto-provide `here` and some Pollen modules to template code

Like Pollen templates, #lang beeswax/template modules should be able to use everything in pollen/template, as well as the magic variable here. Possibly also pollen/pagetree. The project's โ€œpollen.rktโ€ will not be auto-required.

beeswax templates fail to splice `@` forms

I've got a sample based on the second pollen tutorial: https://gist.github.com/benknoble/44a83076ab2c9091e4794274c9214ca8 (see second revision).

Notice the '(@) and blank lines where there should be data, as in the pollen version.

There are workarounds in some (but probably not all) cases, and it would be nice if this were fixed. (Also, when the body is a call to a tag function that produces a txexpr, it's not HTML-ified right, though I admit I don't have an example of that.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.