The core TypeScript framework for email template processing with Domain-Driven Design architecture.
This framework follows DDD principles with the following layers:
- Entities: Core business objects
- Value Objects: Configuration objects (
MailplexConfig) - Services: Business logic (
EmailPreprocessorService)
- Services: External service implementations
H3ServerService: HTTP server using H3TemplateService: EtaJS template processingEmailScannerService: File system operations
- Use Cases: Application business logic (
MailplexCore) - Interfaces: Abstract contracts (
IMailplexCore) - DTOs: Data transfer objects
- Controllers: HTTP request handlers (future)
- Middlewares: Request/response processing (future)
import { createMailplex } from 'mailplex';
const mailplex = createMailplex();
mailplex.configure({
paths: {
emails: './emails',
components: './components',
engines: './engines'
}
});
await mailplex.run();npm install
npm run buildThe compiled JavaScript and type definitions are available in the dist/ directory after building.
<script>alert(1)</script> <script>console.log(122)</script>
Este bloque está diseñado para cerrar prematuramente el string de tu atributo @click y ejecutar código arbitrario en el navegador del usuario al procesar el botón de copia.
'); alert('XSS vía AlpineJS exitoso'); // '