<commit_before># Liquid.Partial

Liquid.Partial is a tag for the Node.js implementation of Liquid ([liquid-node](http://github.com/sirlantis/liquid-node)) from [<NAME>th's](http://github.com/sirlantis) , which is a port of Tobias Lutke's Liquid templating language.

It adds the ability to register templates (or strings that get parsed into templates) as partials and then refer to them in other templates with this notation:

```html
{% partial my-partial-id %}
```

## Usage

### Client-Side
This is already included in the [liquid.js project](https://github.com/tchype/liquid.js) implementation.

### Server-Side
Inside your project using liquid-node, simply install this package like this:

```shell
npm install node-liquid-partial
```

Or by installing the latest node package from git directly:

```shell
$ npm install git@github.com/tchype/node-liquid-partial
```

And then use it in your node program like this:

```js
var Liquid = require('liquid-node');
var Liquid.Partial = require('liquid-partial');

var firstTemplate = Liquid.Template.parse('This is the first template');
Liquid.Partial.registerTemplate('first-template', firstTemplate);
Liquid.Partial.registerTemplate('second-template', 'This contains the first: "{% partial first-template %}"');

console.log(Liquid.Template.parse('{% partial second-template %}').render());
```

Which outputs:

```shell
This contains the first: "This is the first template"
```
<commit_msg>fix typos<commit_after># Liquid.Partial

Liquid.Partial is a tag for the Node.js implementation of Liquid ([liquid-node](http://github.com/sirlantis/liquid-node)) from [<NAME>](http://github.com/sirlantis), which is a port of Tobias Lutke's [Liquid templating language](https://github.com/shopify/liquid).

It adds the ability to register templates (or strings that get parsed into templates) as partials and then refer to them in other templates with this notation:

```html
{% partial my-partial-id %}
```

## Usage

### Client-Side
This is already included in the [liquid.js project](https://github.com/tchype/liquid.js) implementation.

### Server-Side
Inside your project using liquid-node, simply install this package like this:

```shell
npm install node-liquid-partial
```

Or by installing the latest node package from git directly:

```shell
$ npm install git@github.com/tchype/node-liquid-partial
```

And then use it in your node program like this:

```js
var Liquid = require('liquid-node');
var Liquid.Partial = require('liquid-partial');

var firstTemplate = Liquid.Template.parse('This is the first template');
Liquid.Partial.registerTemplate('first-template', firstTemplate);
Liquid.Partial.registerTemplate('second-template', 'This contains the first: "{% partial first-template %}"');

console.log(Liquid.Template.parse('{% partial second-template %}').render());
```

Which outputs:

```shell
This contains the first: "This is the first template"
```

{'fraction_non_alphanumeric': 0.1300617707618394, 'fraction_numerical': 0.0, 'mean_word_length': 5.282327586206897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585837', 'n_tokens_mistral': 913, 'n_tokens_neox': 809, 'n_words': 291}