Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Commented

  • Loading branch information...
commit e11019f09107a4745932d096c5472feb2081aa6d 1 parent 22182ad
@adammark adammark authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 news-reader/javascripts/app.js
View
5 news-reader/javascripts/app.js
@@ -1,10 +1,11 @@
/*
* Create a square thumbnail image, given the image url, original
- * dimensions (width, height) and a target size (t).
+ * dimensions (width, height) and a target size (t). Note use of
+ * backticks when using variables on the right side of the pipe.
*
* Example:
*
- * {{img_url|crop>`img_w`>`img_h`>75>75}}
+ * {{img_url|crop>`img_w`>`img_h`>75}}
*/
Mark.pipes.thumb = function (url, width, height, t) {
var m = Math.min(+width, +height);
Please sign in to comment.
Something went wrong with that request. Please try again.