Skip to content

Commit aad68d0

Browse files
committed
Update
1 parent 43790ef commit aad68d0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

_pages/en/docs/architecture/aspectran-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ The most common use case is passing the result of an Action as a model to a view
110110
```
111111
* **Pebble Template (`user/detail.peb`):**
112112
```html
113-
<h1>User Information</h1>
113+
{% raw %}<h1>User Information</h1>
114114
<p>Name: {{ userInfo.name }}</p>
115-
<p>Email: {{ userInfo.email }}</p>
115+
<p>Email: {{ userInfo.email }}</p>{% endraw %}
116116
```
117117
The `actionId` `userInfo` becomes the name of the model object in the template, allowing access to the data in a way like `userInfo.name`.
118118

_pages/en/docs/architecture/aspectran-loading-mechanism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ Since AOP rules involve complex relationships between multiple components, the p
142142
</joinpoint>
143143
<advice bean="loggingAdvice">
144144
<before>
145-
<action bean="profiler" method="start"/>
145+
<invoke method="start"/>
146146
</before>
147147
</advice>
148148
</aspect>
149149
```
150150

151-
This XML defines an AOP rule that executes the `profiler.start()` action of the `loggingAdvice` bean `before` any method starting with `say` (`joinpoint`) of the `helloAction` bean is executed in the Translet named `/example/hello`.
151+
This XML defines an AOP rule that executes the `start()` method of the `loggingAdvice` bean `before` any method starting with `say` (`joinpoint`) of the `helloAction` bean is executed in the Translet named `/example/hello`.
152152

153153
In the pointcut string, the part before the `@` delimiter represents the Translet's name, the part after it represents the Bean's ID, and the part after the `^` delimiter represents the method name to be called. Wildcards can be used in each part. If you want to target all Translets instead of a specific one, the pattern must start with the `@` delimiter (e.g., `+ "@helloAction^say*"`).
154154

_pages/ko/docs/architecture/aspectran-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ Action의 처리 결과 값은 다음과 같은 다양한 시나리오에서 핵
110110
```
111111
* **Pebble 템플릿 (`user/detail.peb`):**
112112
```html
113-
<h1>사용자 정보</h1>
113+
{% raw %}<h1>사용자 정보</h1>
114114
<p>이름: {{ userInfo.name }}</p>
115-
<p>이메일: {{ userInfo.email }}</p>
115+
<p>이메일: {{ userInfo.email }}</p>{% endraw %}
116116
```
117117
`userInfo`라는 `actionId`가 템플릿에서 모델 객체의 이름이 되어 `userInfo.name`과 같은 방식으로 데이터에 접근할 수 있습니다.
118118

_pages/ko/docs/architecture/aspectran-loading-mechanism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ AOP 규칙은 여러 컴포넌트가 복합적으로 관계를 맺기 때문에
142142
</joinpoint>
143143
<advice bean="loggingAdvice">
144144
<before>
145-
<action bean="profiler" method="start"/>
145+
<invoke method="start"/>
146146
</before>
147147
</advice>
148148
</aspect>
149149
```
150150

151-
이 XML은 이름이 `/example/hello`인 Translet에서 `helloAction` 빈의 `say`로 시작하는 모든 메소드(`joinpoint`)가 실행되기 전(`before`)에 `loggingAdvice` 빈의 `profiler.start()` 액션을 실행하라는 AOP 규칙을 정의합니다.
151+
이 XML은 이름이 `/example/hello`인 Translet에서 `helloAction` 빈의 `say`로 시작하는 모든 메소드(`joinpoint`)가 실행되기 전(`before`)에 `loggingAdvice` 빈의 `start()` 메소드를 실행하라는 AOP 규칙을 정의합니다.
152152

153153
포인트컷 문자열에서 `@` 구분자 앞은 Translet의 이름, 뒤는 Bean의 ID를 나타내며, `^` 구분자 뒤는 호출할 메소드명을 의미합니다. 각 부분에는 와일드카드를 사용할 수 있습니다. 만약 특정 Translet을 지정하지 않고 모든 Translet을 대상으로 하려면 `@` 구분자로 패턴을 시작해야 합니다 (예: `+ "@helloAction^say*"`).
154154

0 commit comments

Comments
 (0)