This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
forked from rails/sprockets
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9f3474d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please I need some detals about this commit.
what the purpose of those functions :
'&block' : where is it used?
def evaluate(scope, locals, &block)
<<-JST
(function() {
{namespace} || (#{namespace} = {});
{namespace}[#{scope.logical_path.inspect}] = #{indent(data)};
}).call(this);
JST
end
def indent(string)
string.gsub(/$(.)/m, "\1 ").strip
end
Do you have some more examples ?
I'm lost :D !!! help