All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.twibs.web.LessVarsResponder.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 by Michael Hombre Brinkmann
 */

package net.twibs.web

import net.twibs.util.{Request, ClassUtils}

class LessVarsResponder extends Responder {
  def respond(request: Request): Option[Response] =
    if (request.path.string == "/inc/_foreign/twibs-vars.less") Some(
      new StringResponse with CacheableResponse with CssMimeType with CompilationTimeResponse {
        def asString: String = s"""@context-path: "${request.contextPath}";"""

        override def compilationTime: Long = ClassUtils.getCompilationTime(classOf[LessVarsResponder])
      })
    else None
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy