@fuzionx/core 0.1.9 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/app.js +14 -1
  2. package/package.json +2 -2
package/lib/app.js CHANGED
@@ -127,7 +127,20 @@ export class FuzionXApp {
127
127
  }
128
128
 
129
129
  /**
130
- * 템플릿 파일 렌더링 (bridge에서 파일 읽기 + {{key}} 치환)
130
+ * Tera SSR 파일 렌더링 ({% extends %}, {% block %}, {% include %} 완전 지원)
131
+ * @param {string} templateDir - 테마 디렉토리 (views/{theme}/)
132
+ * @param {string} templateName - 템플릿 이름 (pages/home.html)
133
+ * @param {object} [context={}] - 템플릿 변수
134
+ * @param {string} [locale='ko'] - 로케일
135
+ * @returns {string} 렌더링된 HTML
136
+ */
137
+ renderFile(templateDir, templateName, context = {}, locale = 'ko') {
138
+ this._boot();
139
+ return this._bridge.ssrRenderFile(templateDir, templateName, JSON.stringify(context), locale);
140
+ }
141
+
142
+ /**
143
+ * 경량 템플릿 파일 렌더링 (bridge에서 파일 읽기 + {{key}} 치환)
131
144
  * @param {string} filePath - 템플릿 파일 경로
132
145
  * @param {object} [context={}] - 치환 변수
133
146
  * @returns {string} 렌더링된 HTML
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzionx/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "description": "Express-style Node.js framework powered by FuzionX native bridge — 167K RPS single process",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  "url": "https://github.com/saytohenry/fuzionx"
19
19
  },
20
20
  "dependencies": {
21
- "@fuzionx/bridge": "^0.1.9"
21
+ "@fuzionx/bridge": "^0.1.21"
22
22
  },
23
23
  "files": [
24
24
  "index.js",