Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add request property for dynamicHelper

add sprintf function for helper
  • Loading branch information...
commit 8a12e83f0e1ebd4aca11aac776d0af370c3cbd60 1 parent f56562e
@yssk22 authored
Showing with 10 additions and 0 deletions.
  1. +7 −0 lib/dynamicHelpers.js
  2. +3 −0  lib/helpers.js
View
7 lib/dynamicHelpers.js
@@ -8,6 +8,13 @@ var merge = require('./utils').merge;
module.exports = {
/**
+ * Returns request object
+ */
+ request: function(req, res){
+ return req;
+ },
+
+ /**
* Returns session object
*/
session: function(req, res){
View
3  lib/helpers.js
@@ -16,6 +16,9 @@ module.exports = {
return md(content, true);
},
+ // TODO: optimized implementation, do not depends on phpjs.
+ sprintf: require('./vendor/php').sprintf,
+
info: function(content){
// TODO: view helper refactoring for theming
return '<div class="ui-widget">' +
Please sign in to comment.
Something went wrong with that request. Please try again.