Code Monkey home page Code Monkey logo

hjs's People

Contributors

jamesrom avatar krzychukula avatar lambdasakura avatar nullfirm avatar x-cray avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

hjs's Issues

Partials don't seem to render

Partials within templates don't seem to render using:

template.hjs

Hello world

{{>test_partial}}

test_partial.hjs

This is a test

unable to access res.locals from hjs templates

I initially raised this against expressjs, but the guys there indicate it might be a problem with hjs - expressjs/express#1833

The problem is that expressjs makes res.locals available to view engines as a function, so given locals like { name: "steve" }, simply writing {{name}} in a hjs template does not produce the expected result. Possibly I could invoke it as a lambda? I'm not sure - i'm new to this - but even if I could that's inconvenient (and libraries like connect-cachify don't work because of this problem).

partials didn't cache

# lib/express.js
renderPartials p, options

the missing options cause fcompile failed to cache partials, which made a huge impact on Node.js io & QPS performace if you have several partials

Partial on every page doesn't work

Hello,
Thank you for the beautiful module.
I have one complain though, partials seem to work fine when used in render but doesn't work for "every page"

app.set('partials', {footer: 'footer'});

Change delimiters

Make it possible to change delimiters to something else.

{{ }} is reserved by AngularJS.

Perhaps an API similar to this:

server.set('view options', {oTag: '<%', cTag: '%>'};

Hjs and Angular - Curly binding syntax not working

I'm using hjs with node and express with angular as font end framework. Curly binding syntax of angular doesn't work with hjs. For eg.

<span>{{ something_present_in_$scope }}<span>         --> this doesn't work
<span ng-bind="something_present_in_$scope"><span>    --> this works

Still don't know whether i should raise this issue with angular or hjs, but it would be really helpful if you can look into this.

Thanks

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.