Skip to content

Commit 61ee6c1

Browse files
committed
문서 번역: api/options-rendering.md
1 parent 9784403 commit 61ee6c1

File tree

1 file changed

+33
-23
lines changed

1 file changed

+33
-23
lines changed

ko-KR/src/api/options-rendering.md

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
:::warning 현재 이 문서는 번역 작업이 진행중입니다
2-
:::
3-
4-
5-
6-
# Options: Rendering
1+
# 옵션: 렌더링 {#options-rendering}
72

83
## template
94

10-
A string template for the component.
5+
컴포넌트의 문자열 템플릿입니다.
116

127
- **타입**:
138

@@ -19,21 +14,29 @@ A string template for the component.
1914

2015
- **세부 사항**:
2116

22-
A template provided via the `template` option will be compiled on-the-fly at runtime. It is only supported when using a build of Vue that includes the template compiler. The template compiler is **NOT** included in Vue builds that have the word `runtime` in their names, e.g. `vue.runtime.esm-bundler.js`. Consult the [dist file guide](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use) for more details about the different builds.
17+
`template` 옵션을 통해 제공된 템플릿은 런타임에서 즉시 컴파일되지만,
18+
템플릿 컴파일러가 포함된 Vue 빌드를 사용할 때만 지원됩니다.
19+
그러나 이름에 `runtime` 단어가 포함된 `vue.runtime.esm-bundler.js`라는 템플릿 컴파일러는 Vue 빌드에 포함되어있지 않습니다.
20+
다른 빌드의 자세한 내용은 [dist 파일 가이드](https://github.com/vuejs/core/tree/main/packages/vue#which-dist-file-to-use)를 참고하세요.
2321

24-
If the string starts with `#` it will be used as a `querySelector` and use the selected element's `innerHTML` as the template string. This allows the source template to be authored using native `<template>` elements.
22+
문자열이 `#`로 시작하면 `querySelector`로 사용되고,
23+
선택한 엘리먼트의 `innerHTML`을 템플릿 문자열로 사용합니다.
24+
이를 통해 네이티브 `<template>` 엘리먼트를 사용하여 소스 템플릿을 작성할 수 있습니다.
2525

26-
If the `render` option is also present in the same component, `template` will be ignored.
26+
동일한 컴포넌트에 `render` 옵션도 있는 경우, `template`은 무시됩니다.
2727

28-
If the root component of your application doesn't have a `template` or `render` option specified, Vue will try to use the `innerHTML` of the mounted element as the template instead.
28+
앱의 루트 컴포넌트에 `template` 또는 `render` 옵션이 지정되지 않은 경우,
29+
Vue는 마운트된 엘리먼트의 `innerHTML`을 템플릿으로 사용하려고 시도합니다.
2930

30-
:::warning Security Note
31-
Only use template sources that you can trust. Do not use user-provided content as your template. See [Security Guide](/guide/best-practices/security.html#rule-no-1-never-use-non-trusted-templates) for more details.
31+
:::warning 보안 참고 사항
32+
신뢰할 수 있는 템플릿 소스만 사용해야 합니다.
33+
사용자가 제공한 콘텐츠를 템플릿으로 사용하면 안됩니다.
34+
자세한 내용은 [가이드 - 보안](/guide/best-practices/security.html#rule-no-1-never-use-non-trusted-templates) 참고.
3235
:::
3336

3437
## render
3538

36-
A function that programmatically returns the virtual DOM tree of the component.
39+
컴포넌트의 가상 DOM 트리를 프로그래밍 방식으로 반환하는 함수입니다.
3740

3841
- **타입**:
3942

@@ -58,33 +61,40 @@ A function that programmatically returns the virtual DOM tree of the component.
5861
5962
- **세부 사항**:
6063
61-
`render` is an alternative to string templates that allows you to leverage the full programmatic power of JavaScript to declare the render output of the component.
64+
`render`는 문자열 템플릿의 대안으로,
65+
템플릿 전체를 JavaScript 프로그래밍 능력을 활용하여,
66+
컴포넌트의 렌더링 출력을 선언할 수 있습니다.
6267
63-
Pre-compiled templates, for example those in Single-File Components, are compiled into the `render` option at build time. If both `render` and `template` are present in a component, `render` will take higher priority.
68+
예를 들어 싱글 파일 컴포넌트(SFC)에 있는 것처럼,
69+
미리 컴파일된 템플릿은 빌드 시 `render` 옵션으로 컴파일됩니다.
70+
컴포넌트에 `render``template`이 모두 있는 경우,
71+
`render`가 더 높은 우선 순위를 갖습니다.
6472
6573
- **참고**:
66-
- [Rendering Mechanism](/guide/extras/rendering-mechanism.html)
67-
- [Render Functions](/guide/extras/render-function.html)
74+
- [가이드 - 렌더링 메커니즘](/guide/extras/rendering-mechanism.html)
75+
- [가이드 - Render Functions](/guide/extras/render-function.html)
6876
6977
## compilerOptions
7078
71-
Configure runtime compiler options for the component's template.
79+
컴포넌트의 템플릿의 런타임 컴파일러 옵션을 구성합니다.
7280
7381
- **타입**:
7482
7583
```ts
7684
interface ComponentOptions {
7785
compilerOptions?: {
7886
isCustomElement?: (tag: string) => boolean
79-
whitespace?: 'condense' | 'preserve' // default: 'condense'
80-
delimiters?: [string, string] // default: ['{{', '}}']
81-
comments?: boolean // default: false
87+
whitespace?: 'condense' | 'preserve' // 기본 값: 'condense'
88+
delimiters?: [string, string] // 기본 값: ['{{', '}}']
89+
comments?: boolean // 기본 값: false
8290
}
8391
}
8492
```
8593

8694
- **세부 사항**:
8795

88-
This config option is only respected when using the full build (i.e. the standalone `vue.js` that can compile templates in the browser). It supports the same options as the app-level [app.config.compilerOptions](/api/application.html#app-config-compileroptions), and has higher priority for the current component.
96+
이 환경설정(config) 옵션은 전체 빌드(예: 브라우저에서 템플릿을 컴파일할 수 있는 독립 실행형 `vue.js`)를 사용할 때만 적용됩니다.
97+
앱 레벨의 [app.config.compilerOptions](/api/application.html#app-config-compileroptions)와 동일한 옵션을 지원하며,
98+
현재 컴포넌트가 더 높은 우선 순위를 갖습니다.
8999

90100
- **참고**: [app.config.compilerOptions](/api/application.html#app-config-compileroptions)

0 commit comments

Comments
 (0)