Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 | 1 |
import * as path from 'path'; |
2 | 1 |
import hostComponents from '../hostComponents/node'; |
3 |
import type { PluginConstructor } from '@remax/types'; |
|
4 |
|
|
5 | 1 |
const EJS_TPL_ROOT = path.join(__dirname, '../../templates'); |
6 |
|
|
7 | 1 |
const plugin: PluginConstructor = () => { |
8 | 1 |
return { |
9 |
meta: { |
|
10 |
global: 'tt', |
|
11 |
template: { |
|
12 |
extension: '.ttml', |
|
13 |
tag: 'import', |
|
14 |
src: 'src', |
|
15 |
},
|
|
16 |
style: '.ttss', |
|
17 |
ejs: { |
|
18 |
base: path.join(EJS_TPL_ROOT, 'base.ejs'), |
|
19 |
page: path.join(EJS_TPL_ROOT, 'page.ejs'), |
|
20 |
},
|
|
21 |
},
|
|
22 |
hostComponents, |
|
23 |
skipHostComponents: ['swiper-item'], |
|
24 |
};
|
|
25 |
};
|
|
26 |
|
|
27 | 1 |
export default plugin; |
Read our documentation on viewing source code .