Giter VIP home page Giter VIP logo

express-messages's People

Contributors

agraboso avatar forbeslindesay avatar niftylettuce avatar rxbynerd avatar s2t2 avatar tj 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

express-messages's Issues

Custom template not displayed in browser

I am using express with nunjucks:

var nunjucks = require('nunjucks');
nunjucks.configure('views', {
    autoescape: true,
    noCache: true,
    express: app,
    watch: true
});

In a template, I try:

{{ messages('test/messages.html', locals) | safe }}

I put console.logs in express-messages/index.js to ensure output is ok. However, browser is not showing.

custom template with EJS

When i'm adding a custom template with EJS it doesn't show anything and i found that's Express 4 doesn't support express-messages is that true?
`


<% Object.keys(messages).forEach(function (type) { %>

    <% messages[type].forEach(function (message) { %>
  • <%= message %>
  • <% }) %>
<% }) %>
`

Custom template collision with express-ejs-layouts module

Hi, I'm a big fan of using custom templates, but I found my custom template stopped working once I configured EJS layouts using the express-ejs-layouts module.

Weird thing is, the default messages() call works fine, but a custom messages('_bootstrap_flash_messages') call does not render anything.

Are you able to provide guidance on the matter?

For more information, see: soarez/express-ejs-layouts#17

Custom templates using handlebars

Hello,
I would like to know if anybody has managed to make a custom template using handlebars and if I could get some help in creating one for myself.
Thank you very much

Express 3

The readme says "Express 2.x only". If this module is not compatible with or not needed with Express 3, could you add a section to the readme explaining what Express 3 users should do instead? This module is the first Google search result for "express flash messages" so users are likely to end up here.

Use this with Handlebars?

Is it possible to use this module with handlebars as a view engine?

I'm not sure how to implement it.

Customizable message template

This is a great module, but it is missing some basic customization for template of each message generated by the module. I wonder if you can provide some setTemplate function that will allow to provide the ejs template, for example.

Thank you.

Problem with != messages()

I was doing one of my project and found that whenever I use != messages() it gives an error messages is not a function

But when used !{messages} it worked just fine, just curious to know why != messages() didn't worked well.

Can i use it without defining res.locals.messages?

Hello, can i use express-messages without defining

app.use(function (req, res, next) {
  res.locals.messages = require('express-messages')(req, res);
  next();
});

because i try it to combine with fastify, but fastify doesn't have locals
thanks before

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.