l0bsterssg

node.js static responsive blog post generator
Log | Files | Refs | README

angular-sprintf.js (490B)


      1 angular.
      2     module("sprintf", []).
      3     filter("sprintf", function() {
      4         return function() {
      5             return sprintf.apply(null, arguments)
      6         }
      7     }).
      8     filter("fmt", ["$filter", function($filter) {
      9         return $filter("sprintf")
     10     }]).
     11     filter("vsprintf", function() {
     12         return function(format, argv) {
     13             return vsprintf(format, argv)
     14         }
     15     }).
     16     filter("vfmt", ["$filter", function($filter) {
     17         return $filter("vsprintf")
     18     }])