RevFileRegistry
A registry for revisioned files, scoped under the given path.
package com.example
object AppAssets : RevFileRegistry("/assets/") {
val main: RevisionedFile = resource("main.js")
val styles: RevisionedFile = resource("styles.css")
}
fun Application.module() {
install(RevFilePlugin) {
+AppAssets
}
}
Functions
Creates a new custom RevisionedFile and adds it to this WriteableRevFileRegistry.
Creates a new RevisionedFile from the given file and adds it to this WriteableRevFileRegistry.
Returns the revisioned file associated with the given path, or null
if no such file exists.
Registers the given entry and returns its associated revisioned file.
Creates a new RevisionedFile from the given JVM resource and adds it to this WriteableRevFileRegistry.
Creates a new RevisionedFile from the given source and adds it to this WriteableRevFileRegistry.
Creates a new RevisionedFile from the given URI and adds it to this WriteableRevFileRegistry.
Creates a new RevisionedFile from the given URL and adds it to this WriteableRevFileRegistry.