mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-26 14:24:40 +00:00
docs: use nvf injections in docs
This commit is contained in:
parent
5ee7fb1986
commit
43de0c6acb
8 changed files with 64 additions and 13 deletions
|
|
@ -10,11 +10,15 @@ In the following example, we are creating a custom injection, to highlight the
|
|||
Lua string after `mkLuaInline`.
|
||||
|
||||
```nix
|
||||
foo = mkLuaInline ''
|
||||
function bar()
|
||||
return 'foobar'
|
||||
end
|
||||
'';
|
||||
let
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
in {
|
||||
foo = mkLuaInline ''
|
||||
function bar()
|
||||
return 'foobar'
|
||||
end
|
||||
'';
|
||||
}
|
||||
```
|
||||
|
||||
```nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue