MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 293530 of Template:source

  • Revision slug: Template:source
  • Revision title: Template:source
  • Revision id: 293530
  • Created:
  • Creator: trevorh
  • Is current revision? No
  • Comment

Revision Content

<% // Insert a link to a file in the mozilla-central source repository. // // $0 - File to link to // $1 - (OPTIONAL) text for the link // // If $1 isn't provided, the link itself is the link text var url = "http://mxr.mozilla.org/mozilla-central/source/" + $0; var text = ($1 || url); %> <%=text%>

Revision Source

<%
// Insert a link to a file in the mozilla-central source repository.
//
//  $0 - File to link to
//  $1 - (OPTIONAL) text for the link
//
// If $1 isn't provided, the link itself is the link text

var url = "http://mxr.mozilla.org/mozilla-central/source/" + $0;
var text = ($1 || url);
%>
<a rel="custom" href="<%=url%>"><%=text%></a>
Revert to this revision