Git Product home page Git Product logo

smartivehandlebarsbundle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartivehandlebarsbundle's Issues

error reporting when template is not found

currently when a handlebars template is not found, i get : ContextErrorException: Warning: Missing argument 2 for Symfony\Bridge\Twig\Extension\HttpKernelExtension::renderFragmentStrategy()

i am not sure if this is related to me calling a custom twig extension that tries to call "Smartive\HandlebarsBundle\Templating\Renderer::render" or if the exception would always come at that place. feels a bit strange that the twig bridge should be involved with the error...

How to use inside a twig file?

Hi there,
Could you add an example of how to use this inside a twig file and how the syntax is to pass the variables to the file?

At the moment I do this inside the twig file to include other twig files:

{% include '@prototype/partials/layout/l-landing-page.html.twig' with { 'variable' : value } %}

But would like to do include also some hbs files like this:

{% handlebars '@prototype/partials/layout/l-landing-page.hbs' with { 'variable' : value } %}

Thanks,
Sascha

php 5.3

Any reasons to require php 5.5? I would like to use with php 5.4 or even 5.3

Option to use StringLoader

First off thanks for a useful bundle!

I need an option to use the StringLoader instead of FilesystemLoader.

My use case is a mix of loading templates from disk and from strings, so it would be useful to be able to easily switch between the two.

I could submit a PR but would like to discuss how to best implement the option.

Multiple methods on the Renderer object?

Multiple services in the container?

Any other idea?

I'll just use the Handlebars\Handlebars class for now which defaults to StringLoader

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.