src/ngx_pagespeed.cc
// We support interpretation of nginx variables in some configuration settings,
// but we also need to support literal dollar signs in those same settings.
// Nginx has no good solution for this, so we define $dollar to expand to '$',
// which lets people include literal dollar signs if they need them.
We support interpretation of nginx variables in some configuration settings,
but we also need to support literal dollar signs in those same settings.
Nginx has no good solution for this, so we define $dollar to expand to '$',
which lets people include literal dollar signs if they need them.
We support interpretation of nginx variables in some configuration settings but we also need to support literal dollar signs in those same settings . Nginx has no good solution for this so we define $dollar to expand to ' $ ' which lets people include literal dollar signs if they need them .
ngx_int_t ps_dollar(
    ngx_http_request_t *r, ngx_http_variable_value_t *v, uintptr_t data) {
  v->valid = 1;
  v->no_cacheable = 0;
  v->not_found = 0;
  v->data = reinterpret_cast<u_char*>(const_cast<char*>("$"));
  v->len = 1;
  return NGX_OK;
}
ngx_int_t ps_dollar ( ngx_http_request_t * r , ngx_http_variable_value_t * v , uintptr_t data ) { v -> valid = 1 ; v -> no_cacheable = 0 ; v -> not_found = 0 ; v -> data = reinterpret_cast < u_char * > ( const_cast < char * > ( " " ) ) ; v -> len = 1 ; return NGX_OK ; }
We support interpretation of nginx variables in some configuration settings,
but we also need to support literal dollar signs in those same settings.
We support interpretation of nginx variables in some configuration settings but we also need to support literal dollar signs in those same settings .