Giter Site home page Giter Site logo

fusion-template-literals's People

Watchers

 avatar  avatar

fusion-template-literals's Issues

Eel-expression rendering

Currently the string parts are joined in a Neos.Fusion:Join (as configured in the Settings). However using the DSL like below suggests that it would be possible to access this.* values:

foo = 12
bar = plain`string with ${this.foo}.`

To achieve this, a renderer would be needed, that would create an eel expression like ${'part1' + (part2) + 'part3' ...}.

Arguably that should be the default renderer.

Create block modes

It would be convenient to have different block modes to enable mutli-line values with stripped indentation, e.g.

example = Neos.Fusion:Value {
  value = plain`>>>
    the text is indented
    to match the code
    but should be stripped of that indentation
    in the output
  `
}

There might be different modes like yaml can introduce multi-line blocks with | (trims the indentation) or > (joins the lines (and trims the indentation)).
These modes (do nothing, trim (inital) indentation, join lines, trim all leading and trailing whitespaces) would be activated with a configurable "keyword", so that it would be possible to e.g. change the default behaviour.

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.