GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - loopusdev/sails-context: Sails.js policy for preload context data

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.jscsrc
.jscsrc
 
 
.jshintignore
.jshintignore
 
 
.jshintrc
.jshintrc
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

sails-context

Sails.js context loader. This module preload data like current record, list count ... etc for use in others policies, controllers and views as req.context

Want to help? see: https://gist.github.com/albertosouza/81bfb2bea761b7b6f5fe

How it will work? ... a sails acl proposal ...

Link: https://gist.github.com/albertosouza/81bfb2bea761b7b6f5fe

Installation

npm install sails-context --save

Add it to your policies:

// file config/policies.js
var context = require('sails-context').sails.police;

module.exports.policies = {
  '*': [context]
};

Credits

Alberto Souza and contributors

LICENSE: MIT

About

Sails.js policy for preload context data

Resources

Readme
ISC license
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.