Skip to content

Commit

Permalink
fix lins inside stand alone modules (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 authored and jchip committed Aug 3, 2018
1 parent 505495f commit 3cf574c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions docs/chapter1/advanced/stand-alone-modules/confippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ $ npm install --save electrode-confippet

## Usage

* [Getting Started](http://www.electrode.io/docs/confippet.html#getting-started)
* [configuration Composition](http://www.electrode.io/docs/confippet.html#config-composition)
* [Environment Variables](http://www.electrode.io/docs/confippet.html#environment-variables)
* [Using Templates](http://www.electrode.io/docs/confippet.html#using-templates)
* [Usage in Node Modules](http://www.electrode.io/docs/confippet.html#usage-in-node-modules)
* [Customization](http://www.electrode.io/docs/confippet.html#customization)
* [Getting Started](https://docs.electrode.io/other/stand-alone-modules/confippet#getting-started)
* [configuration Composition](https://docs.electrode.io/other/stand-alone-modules/confippet#config-composition)
* [Environment Variables](https://docs.electrode.io/other/stand-alone-modules/confippet#environment-variables)
* [Using Templates](https://docs.electrode.io/other/stand-alone-modules/confippet#using-templates)
* [Usage in Node Modules](https://docs.electrode.io/other/stand-alone-modules/confippet#usage-in-node-modules)
* [Customization](https://docs.electrode.io/other/stand-alone-modules/confippet#customization)

### Getting Started

Confippet can be integrated seamlessly into any existing [Express](http://www.electrode.io/docs/confippet.html#express-setup), [Hapi](http://www.electrode.io/docs/confippet.html#hapi-setup) or [Electrode](http://www.electrode.io/docs/confippet.html#electrode-setup) application.
Confippet can be integrated seamlessly into any existing [Express](https://docs.electrode.io/other/stand-alone-modules/confippet#express-setup), [Hapi](https://docs.electrode.io/other/stand-alone-modules/confippet#hapi-setup) or [Electrode](https://docs.electrode.io/other/stand-alone-modules/confippet#electrode-setup) application.

For example, let's say that in our application we need to access a database that is running locally in our development environment but is running on a specific hostname in our production environment. We would like to be able to get the correct hostname in our code based on the current environment. Confippet can help us with this. Follow the setup instructions for this example depending on your app's framework:

* [Electrode](http://www.electrode.io/docs/confippet.html#electrode-setup)
* [Express](http://www.electrode.io/docs/confippet.html#express-setup)
* [Hapi](http://www.electrode.io/docs/confippet.html#hapi-setup)
* [Electrode](https://docs.electrode.io/other/stand-alone-modules/confippet#electrode-setup)
* [Express](https://docs.electrode.io/other/stand-alone-modules/confippet#express-setup)
* [Hapi](https://docs.electrode.io/other/stand-alone-modules/confippet#hapi-setup)

#### _**Electrode Setup**_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,21 +184,21 @@ const cacheConfig = {

# API

### [`enableProfiling(flag)`](http://www.electrode.io/docs/server_side_render_cache.html#enableprofilingflag)
### [`enableProfiling(flag)`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#enableprofiling-flag)

Enable profiling according to flag

* `undefined`or `true`- enable profiling
* `false`- disable profiling

### [`enableCaching(flag)`](http://www.electrode.io/docs/server_side_render_cache.html#enablecachingflag)
### [`enableCaching(flag)`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#enablecaching-flag)

Enable cache according to flag

* `undefined` or `true`- enable caching
* `false`- disable caching

### [`enableCachingDebug(flag)`](http://www.electrode.io/docs/server_side_render_cache.html#enablecachingdebugflag)
### [`enableCachingDebug(flag)`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#enablecachingdebug-flag)

Enable cache debugging according to flag.

Expand All @@ -207,11 +207,11 @@ Enable cache debugging according to flag.
* `undefined` or `true`- enable cache debugging
* `false`- disable cache debugging

### [`setCachingConfig(config)`](http://www.electrode.io/docs/server_side_render_cache.html#setcachingconfigconfig)
### [`setCachingConfig(config)`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#setcachingconfig-config)

Set the caching configuration to`config`.

### [`stripUrlProtocol(flag)`](http://www.electrode.io/docs/server_side_render_cache.html#stripurlprotocolflag)
### [`stripUrlProtocol(flag)`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#stripurlprotocol-flag)

Remove`http:`or`https:`from prop values that are URLs according to flag.

Expand All @@ -220,7 +220,7 @@ Remove`http:`or`https:`from prop values that are URLs according to flag.
* `undefined`or `true`- strip URL protocol
* `false`- don't strip

### [`shouldHashKeys(flag, [hashFn])`](http://www.electrode.io/docs/server_side_render_cache.html#shouldhashkeysflaghashfn)
### [`shouldHashKeys(flag, [hashFn])`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#shouldhashkeys-flag-hashfn)

Set whether the `template` strategy should hash the cache key and use that instead.

Expand All @@ -235,18 +235,18 @@ Set whether the `template` strategy should hash the cache key and use that inste

If no `hashFn` is provided, then [farmhash](https://github.com/google/farmhash) is used if it's available, otherwise hashing is turned off.

### [`clearProfileData()`](http://www.electrode.io/docs/server_side_render_cache.html#clearprofiledata)
### [`clearProfileData()`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#clearprofiledata)

Clear profiling data

### [`clearCache()`](http://www.electrode.io/docs/server_side_render_cache.html#clearcache)
### [`clearCache()`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#clearcache)

Clear caching data

### [`cacheEntries()`](http://www.electrode.io/docs/server_side_render_cache.html#cacheentries)
### [`cacheEntries()`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#cacheentries)

Get total number of cache entries

### [`cacheHitReport()`](http://www.electrode.io/docs/server_side_render_cache.html#cachehitreport)
### [`cacheHitReport()`](https://docs.electrode.io/other/stand-alone-modules/server-side-render-caching-+-profiling#cachehitreport)

Print out cache entries and number of hits each one has.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Other configuration properties are optional and follow the [same usage as jsonwe

### Electrode {#stateless-validation-electrode}

All server configurations in [Electrode apps](/overview/what-is-electrode.md) are handled by the versatile [confippet](/chapter1/advanced/stand-alone-modules/confippet.md) module. The Stateless CSRF JWT Validation module can be easily configured by adding the following property to `config/default.json`:
All server configurations in [Electrode apps](../../../what-is-electrode.md) are handled by the versatile [confippet](./confippet.md) module. The Stateless CSRF JWT Validation module can be easily configured by adding the following property to `config/default.json`:

```
{
Expand Down

0 comments on commit 3cf574c

Please sign in to comment.