Concat.md - hugo - [fork] hugo port for 9front
 (HTM) git clone https://git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       Concat.md (944B)
       ---
            1 ---
            2 title: resources.Concat
            3 description: Returns a concatenated slice of resources.
            4 categories: []
            5 keywords: []
            6 params:
            7   functions_and_methods:
            8     aliases: []
            9     returnType: resource.Resource
           10     signatures: ['resources.Concat TARGETPATH [RESOURCE...]']
           11 ---
           12 
           13 The `resources.Concat` function returns a concatenated slice of resources, caching the result using the target path as its cache key. Each resource must have the same [media type].
           14 
           15 Hugo publishes the resource to the target path when you call its [`Publish`], [`Permalink`], or [`RelPermalink`] method.
           16 
           17 [media type]: https://en.wikipedia.org/wiki/Media_type
           18 [`publish`]: /methods/resource/publish/
           19 [`permalink`]: /methods/resource/permalink/
           20 [`relpermalink`]: /methods/resource/relpermalink/
           21 
           22 ```go-html-template
           23 {{ $plugins := resources.Get "js/plugins.js" }}
           24 {{ $global := resources.Get "js/global.js" }}
           25 {{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
           26 ```