Is it possible to use Lift’s CSS Selector Transforms together with DispatchSnippet? It does not seem to work for me.
Is it possible to use Lift’s CSS Selector Transforms together with DispatchSnippet? It does
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Answering my own question… yeah, it is possible! My problem was the following: Snippet methods have to be of the type NodeSeq => NodeSeq but CSS Transformations return a () => CSSSel. A CSSSel is itself NodeSeq => NodeSeq, so the CSS Transformation is () => (NodeSeq => NodeSeq).
That means, in order to use it with DispatchSnippet it must be referenced like this in the dispatcher:
Basically, I just had an extra _ sign at the end.