# Guide to switch to `template` option Since version 1.1.0, `prop`, `before` and `after` options has been deprecated in favor of `template`. This small guide provides you with examples to use the new `template` option instead of the deprecated options. >**NOTE**: `prop`, `before` and `after` options will be removed from version 2.0.0 and later. - [Basic Usage](#basic-usage) - [With most options](#with-most-options) - [Unknown property](#unknown-property) - [Deep property](#deep-property) - [With news lines and tabulations](#with-news-lines-and-tabulations) ## Basic Usage Here is a first example to display the `name` property inside `package.json`: _Before:_ ```markdown markdown-magic-package-json ``` _After:_ ```markdown markdown-magic-package-json ``` ## With most options Here is an example with most options: _Before:_ ```markdown ### markdown-magic-package-json is very useful ! ``` _After:_ ```markdown ### markdown-magic-package-json is very useful ! ``` ## Unknown property In this example, the property does not exist in `package.json`: _Before:_ ```markdown undefined ``` _After:_ ```markdown undefined ``` Please note in this case the value unknown is replaced by `undefined`. You can change `undefined` by a value of your choice using the option `unknownTxt` as below: _Before:_ ```markdown ##TODO## ``` _After:_ ```markdown ##TODO## ``` ## Deep property To retrieve a deep property (for example `repository.type`): _Before:_ ```markdown git ``` _After:_ ```markdown git ``` ## With news lines and tabulations To the layout, use characters for new line (`\n`) or tabulation (`\t`): _Before:_ ```markdown # Hello World The package: markdown-magic-package-json It is useful! Very useful!!! ``` _After:_ ```markdown # Hello World The package: markdown-magic-package-json It is useful! Very useful!!! ```