Explorar o código

Updated template documentation

Kartik Visweswaran %!s(int64=11) %!d(string=hai) anos
pai
achega
16544a9f0e
Modificáronse 1 ficheiros con 15 adicións e 15 borrados
  1. 15 15
      README.md

+ 15 - 15
README.md

@@ -132,15 +132,15 @@ The `mainTemplate` if not passed, will be automatically set based on `showCaptio
 
 
 - If `showCaption` is set to `true`, the `mainTemplate` will default to:
 - If `showCaption` is set to `true`, the `mainTemplate` will default to:
 ```html
 ```html
-{preview}\n
-<div class="input-group {class}">\n
-   {caption}\n
-   <div class="input-group-btn">\n
-       {remove}\n
-       {upload}\n
-       {browse}\n
-   </div>\n
-</div>\n
+{preview}
+<div class="input-group {class}">
+   {caption}
+   <div class="input-group-btn">
+       {remove}
+       {upload}
+       {browse}
+   </div>
+</div>
 ```
 ```
 
 
 - If `showCaption` is set to `false`, the `mainTemplate` will default to:
 - If `showCaption` is set to `false`, the `mainTemplate` will default to:
@@ -155,8 +155,8 @@ _string_ the template used to render the caption. The following template variabl
 
 
 The `captionTemplate` if not set will default to:
 The `captionTemplate` if not set will default to:
 ```html
 ```html
-<div class="form-control file-caption {class}">\n
-   <span class="glyphicon glyphicon-file"></span> <span class="file-caption-name"></span>\n
+<div class="form-control file-caption {class}">
+   <span class="glyphicon glyphicon-file"></span> <span class="file-caption-name"></span>
 </div>
 </div>
 ```
 ```
 
 
@@ -167,10 +167,10 @@ _string_ the template used to render the preview. The following template variabl
 
 
 The `previewTemplate` if not set will default to:
 The `previewTemplate` if not set will default to:
 ```html
 ```html
-<div class="file-preview {class}">\n
-   <div class="file-preview-status text-center text-success"></div>\n
-   <div class="close fileinput-remove text-right">&times;</div>\n
-   <div class="file-preview-thumbnails"></div>\n
+<div class="file-preview {class}">
+   <div class="file-preview-status text-center text-success"></div>
+   <div class="close fileinput-remove text-right">&times;</div>
+   <div class="file-preview-thumbnails"></div>
    <div class="clearfix"></div> +
    <div class="clearfix"></div> +
 </div>
 </div>
 ```
 ```